Wondering what’s next for npm?Check out our public roadmap! »

rollup-plugin-jsx

1.0.3 • Public • Published

rollup jsx plugin

This is a simple wrapper around jsx-transform. Make sure to go check that out for options.

Install it with npm install rollup-plugin-jsx

Use it like this in your config:

import jsx from 'rollup-plugin-jsx'
 
export default {
  dest: 'build/app.js',
  entry: 'src/index.js',
  plugins: [
    jsx( {factory: 'React.createElement'} )
  ],
  sourceMap: true
}
 

For a more complete example, see buble-react-rollup-starter

Install

npm i rollup-plugin-jsx

DownloadsWeekly Downloads

391

Version

1.0.3

License

MIT

Last publish

Collaborators

  • avatar