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

Usage with Bublé and it's JSX feature #3

Open
piotr-cz opened this issue Dec 19, 2016 · 0 comments
Open

Usage with Bublé and it's JSX feature #3

piotr-cz opened this issue Dec 19, 2016 · 0 comments

Comments

@piotr-cz
Copy link

piotr-cz commented Dec 19, 2016

In my project I'm using React and it's JSX format and Bublé trough rollup-plugin-buble with JSX support for compilation.
For some reason using rollup-plugin-root-import to resolve paths breaks Bublé transpilation functionality and Rollup throws an error (In configuration I had to add extensions: ['.js','.jsx']):

Error parsing xxx.jsx: Unexpected token (16:6) in xxx.jsx (this is where JSX markup is used).

There is no error when importing .js files, only the .jsx ones.

I've tried to debug this plugin and it seems that paths are correctly resolved however error pops up only when trying to resolve paths fro jsx files.

It looks like the JSX compilation is omitted for file paths resolved from root.

Tried with:

  • rollup-plugin-root-import: 0.2.1
  • rollup: 0.36.4, 0.37.0
  • buble: 0.14.3, 0.15.1
  • rollup-plugin-buble: 0.14.0, 0.15.0
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