Broccoli preprocessor for React JSX
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
test
.gitignore
.travis.yml
Brocfile.js
CHANGELOG.md
LICENSE
index.js
package.json
readme.md
test.js

readme.md

broccoli-react Build Status

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"] }
});