question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Didn't transpile correctly with Parcel because incorrect jsnext:main

See original GitHub issue

What 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:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
limontecommented, Jan 10, 2019

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).

https://github.com/parcel-bundler/parcel/commit/f75941c3cfeb189578e3f2f9579dc9909da1d7c0

1reaction
gvernicommented, Jan 10, 2019

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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found