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

jsnext #439

Closed
salzhrani opened this issue Oct 19, 2016 · 4 comments
Closed

jsnext #439

salzhrani opened this issue Oct 19, 2016 · 4 comments

Comments

@salzhrani
Copy link

we ran into an issue similar to this
and It seems that jsnext:main entry should to transpiled code that has module syntax, not es6 code. currently the code in lib is es6 and it makes safari sad.

@stefanpenner
Copy link
Collaborator

and It seems that jsnext:main entry should to transpiled code that has module syntax, not es6 code. currently the code in lib is es6 and it makes safari sad.

I don't believe that is the point of jsnext:main

@salzhrani
Copy link
Author

It is what bundlers like webpack and rollup are expecting.

ref:
reduxjs/redux#1042
jsforum/jsforum#5

@stefanpenner
Copy link
Collaborator

stefanpenner commented Oct 19, 2016

jsforum/jsforum#5

doesn't actually come to conclusion, as it is a proposal to reclaim the property for this meaning, and one of the last points raised is: jsforum/jsforum#5 (comment)


@Rich-Harris @caridy whats-up with with jsnext:main referring to ES2015 modules only subset of jsnext? Something smells very fishy about that. modules:main or something makes sense.

Also based on the above reading it is essentially locked to something even more restrictive as future additions to the modules syntax would break existing tooling. Does that mean, it is more like es2015-modules:main ?

For whatever it is worth, on our side, we have always treated jsnext main entry points as requiring a full transpile.

@stefanpenner stefanpenner reopened this Oct 19, 2016
@stefanpenner
Copy link
Collaborator

3.4.0 now points to a bundle with only exports statements: 28e5753

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