jsmain:next should point to a “redistributable ES2015 bundle”
See original GitHub issuewhat that means is “syntax the platform (browser/node) can read except for the ES2015 import/export syntax”
funnily my test project doesn’t work with specifically react-redux:
rollup(babel(), commonjs(), npm({‘jsnext:main’: true}))
→ rollup’s acon can’t parse the object spread syntax here'jsnext:main': false
→ https://github.com/rollup/rollup-plugin-commonjs/issues/29
Issue Analytics
- State:
- Created 8 years ago
- Reactions:5
- Comments:15 (6 by maintainers)
Top Results From Across the Web
No results found
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 FreeTop 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
Top GitHub Comments
Yep, just add
external: [ 'react' ]
to your Rollup configThis should be fixed on
next
, I believe. Give 5.0.0-beta.2 a whirl. There is both a jsnext:main and module entry in the package.json now.