Package Exports
- rollup-plugin-jsx
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-jsx) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
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