broccoli-react
v0.9.0
Published
Convert Facebook React JSX files to JS
Downloads
262
Readme
broccoli-react
A React JSX filter for broccoli.
Installation
npm install --save broccoli-react
Usage
var filterReact = require('broccoli-react');
tree = filterReact(tree);
Options
extensions
Type: Array
Default: ['jsx']
Specify the extensions for the source files.
babelOptions
Type: Object
Default: {}
Specify options for babel, useful for e.g. plugins, transforms etc.
tree = filterReact(tree, {
extensions: ['js'],
babelOptions: { plugins: ["transform-class-properties"] }
});