Static GitHub Issues

[779] Module from npm written in ES6

prev: babel-polyfill invalid
next: Nuxt.js cannot trigger event on some chinese mobile browser (like QQ browser)

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.

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c666">#c666</a>)</em></sub></div>