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

Added "jsnext:main" entry to package.json for ES2015 module import. #204

Merged
merged 2 commits into from Mar 20, 2016

Conversation

ynohtna
Copy link
Contributor

@ynohtna ynohtna commented Mar 19, 2016

What do you think of rollup's proposal for supporting ES2015 module imports: https://github.com/rollup/rollup/wiki/jsnext:main ?

I've only been using rollup (instead of webpack) on a new project for a couple of days and haven't formed an opinion yet, but this small addition of a "jsnext:main" entry to package.json supports directly importing redux-saga's ES2015 source with rollup's "tree shaking" code elimination, and without needing an additional rollup commonjs plugin.

yelouafi added a commit that referenced this pull request Mar 20, 2016
Added "jsnext:main" entry to package.json for ES2015 module import.
@yelouafi yelouafi merged commit 677902f into redux-saga:master Mar 20, 2016
@yelouafi
Copy link
Member

thanks. Haven't worked with rollup before, if this small addition would make it work then great :)

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

Successfully merging this pull request may close these issues.

None yet

2 participants