Skip to content

Broccoli preprocessor for React JSX

License

Notifications You must be signed in to change notification settings

edd/broccoli-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Stars

Watchers

Forks

Packages

No packages published