-
-
Notifications
You must be signed in to change notification settings - Fork 150
JSX Transform #51
Comments
Can provide your rollup config file and the file (or part ) that is causing the error? |
It's a migration in progress, so please ignore all the noise - Rollup config, JSX example. |
I have converted the JSX code into pure functions and the react issue is gone, but some still persist.
Transition is a global component and tabcontent (functional) is locally declared. |
|
I know, I'm talking about .vue files with JSX code inside, which is converted to js with Did you tried those? |
I haven't. I'm trying now. |
@miljan-aleksic You seem to be passing a babel options object to buble at https://github.com/vuikit/vuikit/blob/rollup_issue/rollup.config.js#L20 |
@posva, interesting. How is that for Webpack Evan has created a Vue specific plugin but for Rollup this generic one is enough? |
@miljan-aleksic You may miss some very specific features: https://github.com/vuejs/babel-plugin-transform-vue-jsx#jsx-spread. But using babel instead of buble is perfectly fine |
ok, thanks :) |
Check out this example repository. It got it working. |
I am currently refactoring the library and when finish will get pack to the build. You are both awesome, thank you guys! |
Thank you @znck, this plugin is very much needed!
After the error
ReferenceError: React is not defined
and LOL I can confirm the plugin doesn't support JSX transformation and somehow uses the React one. I can even see in yarn.lock the react references, although is not a direct dependency.I am not sure about the solution, relatively new to Rollup and bundlers plugins, but would like to help in any matter possible, so let me know!
The text was updated successfully, but these errors were encountered: