nolanlawson / rollupify

Browserify transform to apply Rollup (UNMAINTAINED)
Apache License 2.0
386 stars 16 forks source link

Doesn't support JSX #42

Closed naxsooley closed 8 years ago

naxsooley commented 8 years ago

According to docs I've a correct setup of transforms [rollupify, babelify].

In my .babelrc I've:

{
  "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 (
      <DropdownButton />
)

Is there some kind of workaround for this?

nolanlawson commented 8 years ago

Duplicate of #1, and no sorry there is no workaround.