Didn't transpile correctly with Parcel because incorrect jsnext:main
See original GitHub issueWhat is the problem…
Can not use Parcel + sweetalert2 + IE 9. because transpile result contain arrow function. the official demo with Parcel also contain arrow function. You can find arrow function from build dist easily.
It’s not bug of Parcel. The full story is here.
https://github.com/parcel-bundler/parcel/issues/1037
Please fix it correctly
Please fix jsnext:main
correctly. It must be ES6-module entry point.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Parcel do not transpile some ES6+ code in node_modules
I feel Parcel do not transpile some code in dependency. Is it correct action by design or wrong behavior? If it is correct...
Read more >Why and how to transpile dependencies of your JavaScript ...
We'll figure out how to transpile the dependencies code. ... dependencies because everything seems to work fine without it, right? Wrong!
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
https://github.com/parcel-bundler/parcel/commit/f75941c3cfeb189578e3f2f9579dc9909da1d7c0
Just for the record, at the time of this comment, the issue reported here wasn’t reproducible anymore (the output of parcel command did not have any arrows functions in it).