Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tree shaking issue: jsnext:main targets pre-transpiled assets #705

Open
HeberLZ opened this issue Jan 4, 2017 · 0 comments
Open

Tree shaking issue: jsnext:main targets pre-transpiled assets #705

HeberLZ opened this issue Jan 4, 2017 · 0 comments

Comments

@HeberLZ
Copy link

HeberLZ commented Jan 4, 2017

Hi everyone,

The issue that we are currently having on the team i work is that we were setting everything up on our project for code-splitting and tree shaking with webpack, and we noticed that our build was failing because webpack was trying to load es6 module version based on the jsnext:main attribute, and that particular entry point has not yet being transpiled, making the build process fail.

If possible i'd like to avoid having to manually manage the transpile process of external libraries, and i say manually because not excluding node_modules from the transpile process (which would be the transparent solution) has some serious penalties.

Has anyone else had to play with these?

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant