Closed romanlv closed 6 years ago
I'm getting UglifyJs Unexpected token error when trying to create production build in my project
UglifyJs Unexpected token
I think, it's due to fact that by default, webpack does not transpile code in node_modules but can understand import/export modules.
node_modules
import/export
It makes sense to use babel with preset ["env", {"modules": false }] so it only leaves modules that can be used for tree shaking.
["env", {"modules": false }]
For cases when pure ES6 version is desired, it can be sourced from modules source folder
modules
I will look into it. Sorry for the very delayed response.
If you can provide some details on rambdax and webpack versions, that would be helpful.
rambdax
webpack
I'm getting
UglifyJs Unexpected token
error when trying to create production build in my projectI think, it's due to fact that by default, webpack does not transpile code in
node_modules
but can understandimport/export
modules.It makes sense to use babel with preset
["env", {"modules": false }]
so it only leaves modules that can be used for tree shaking.For cases when pure ES6 version is desired, it can be sourced from
modules
source folder