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

Package 'module' field is in ES6 syntax -- incompatible with IE #12

Closed
josephliccini opened this issue Feb 22, 2019 · 1 comment
Closed

Comments

@josephliccini
Copy link

Hi,

I am trying to consume this package with webpack, which will use the module field in package.json.

That module field points to a ES6 version of the package. I believe module should be used for ES6 import / export syntax, but still needs to be runtime compatible with ES5.

This leads to webpack pulling in an ES6 class which causes a syntax error in IE.

@mourner
Copy link
Owner

mourner commented Feb 23, 2019

This is intentional. See an equivalent discussion here.

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

2 participants