Closed naxsooley closed 8 years ago
According to docs I've a correct setup of transforms [rollupify, babelify].
In my .babelrc I've:
.babelrc
{ "presets": [ "stage-1", ["es2015", {"loose": true}], "react" ] }
When I try to use rollupify with react, I get a message like:
Error: Unexpected token (39:6) in /home/file.js while parsing file: /home/app.js
Errors are thrown for JSX (return <jsx>) appearances like:
return <jsx>
return ( <DropdownButton /> )
Is there some kind of workaround for this?
Duplicate of #1, and no sorry there is no workaround.
According to docs I've a correct setup of transforms [rollupify, babelify].
In my
.babelrc
I've:When I try to use rollupify with react, I get a message like:
Errors are thrown for JSX (
return <jsx>
) appearances like:Is there some kind of workaround for this?