selfrefactor / rambdax

Extended version of Rambda
https://selfrefactor.github.io/rambdax
MIT License
221 stars 26 forks source link

transpile ES6 code in `esm` version, only leaving ES6 modules #17

Closed romanlv closed 6 years ago

romanlv commented 6 years ago

I'm getting UglifyJs Unexpected token error when trying to create production build in my project

I think, it's due to fact that by default, webpack does not transpile code in node_modules but can understand import/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

selfrefactor commented 6 years ago

I will look into it. Sorry for the very delayed response.

selfrefactor commented 6 years ago

If you can provide some details on rambdax and webpack versions, that would be helpful.