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

Non-ES6 modules files not transpiled for jsnext:main #1

Open
chiel opened this issue Nov 10, 2016 · 0 comments
Open

Non-ES6 modules files not transpiled for jsnext:main #1

chiel opened this issue Nov 10, 2016 · 0 comments

Comments

@chiel
Copy link

chiel commented Nov 10, 2016

First off, thanks for this library, it's been pretty helpful to me.

I've recently switched to rollup for my bundling needs and I've run into a small issue with this package, since it does not have transpiled code for jsx syntax (and perhaps other features, did not check) which means it's unusable as jsnext:main.

I get the following error:

Error parsing ./node_modules/redux-spy/src/reduxSpy.js: Unexpected token (9:8) in ./node_modules/redux-spy/src/reduxSpy.js

Which is because rollup uses the file specified by jsnext:main field whenever present. However, it doesn't know about anything else other than es6 module syntax, so it breaks on the JSX in that file.

There is a good write-up about this stuff over at https://github.com/rollup/rollup/wiki/jsnext:main.

So the question is, are you open to fixing this, or at least open to accepting a pull request? :)

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

1 participant