Home

Issue: 779

Module from npm written in ES6

[issue link]

When I import an module from npm (node_modules) which is written in ES6 (and has .es6 file extension), this module is probably not transpiled by babel. This works OK in dev mode, but when I run yarn build, UglifyJS throws an error, probably because it does not understand non-transpiled es6 syntax. Should I somehow modify configuration so babel does transpile .es6 files in node_modules?

thanks.

This question is available on Nuxt.js community (#c666)