Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/konsumer/rollup-plugin-jsx
Rollup jsx plugin
https://github.com/konsumer/rollup-plugin-jsx
Last synced: about 2 months ago
JSON representation
Rollup jsx plugin
- Host: GitHub
- URL: https://github.com/konsumer/rollup-plugin-jsx
- Owner: konsumer
- Created: 2016-05-16T22:32:57.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-16T19:56:07.000Z (over 7 years ago)
- Last Synced: 2024-05-02T01:29:54.999Z (7 months ago)
- Language: JavaScript
- Size: 2.93 KB
- Stars: 13
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome - jsx - Compile React JSX and JSX-like components. (Plugins / Frameworks)
README
# rollup jsx plugin
This is a simple wrapper around [jsx-transform](https://github.com/alexmingoia/jsx-transform). Make sure to go check that out for options.
# depracated
I originally made this project for buble, before JSX support went in. have a look at [/buble-react-rollup-starter](https://github.com/yamafaktory/buble-react-rollup-starter) for a great example of usage without this plugin.
Install it with `npm install rollup-plugin-jsx`
Use it like this in your config:
```js
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](https://github.com/yamafaktory/buble-react-rollup-starter)