Skip to content
master
Go to file
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Broccoli preprocessor for React JSX

Resources

License

Packages

No packages published
You can’t perform that action at this time.