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

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

Closed
item4 opened this issue Mar 28, 2018 · 5 comments · Fixed by #1378
Closed

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

item4 opened this issue Mar 28, 2018 · 5 comments · Fixed by #1378
Assignees
Labels
needs: breaking change Solving this issue/merging this PR would cause a breaking change

Comments

@item4
Copy link

item4 commented Mar 28, 2018

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.

parcel-bundler/parcel#1037

Please fix it correctly

Please fix jsnext:main correctly. It must be ES6-module entry point.

@limonte
Copy link
Member

limonte commented Mar 28, 2018

Thanks for reporting, jsnext:main will be removed in the next major release.

@limonte limonte added the needs: breaking change Solving this issue/merging this PR would cause a breaking change label Mar 28, 2018
@gverni
Copy link
Contributor

gverni commented Jan 10, 2019

Hi @limonte sorry for the delay with this change (I was researching on this topic), but I was wondering if we should replace the deprecated jsnext:main with pkg.module or get rid of that entirely. What do you think?

@limonte
Copy link
Member

limonte commented Jan 10, 2019

@gverni :%s/jsnext:main/module/ will close this issue and #1376

@gverni
Copy link
Contributor

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

@limonte
Copy link
Member

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

parcel-bundler/parcel@f75941c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: breaking change Solving this issue/merging this PR would cause a breaking change
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants