0.1.1 • Published 9 years ago
broccoli-react-caching v0.1.1
broccoli-react-caching
React Compiler for Broccoli. Based on react-sass.
Installation
npm install --save-dev broccoli-react-caching
Usage
var react = require('broccoli-react-caching');
var outputTree = react(inputTrees, options);
inputTrees
: An array of trees that act as the include paths for react jsx files. If you have a single tree, pass[tree]
.options
: An object with additional configuration, see below.
options
react(inputTrees, {
fileExtension: 'jsx', // files are matched against this, defaults to 'jsx'
encoding: 'UTF-8', // encoding of the jsx files, defaults to 'UTF-8'
transformOptions: { // These are passed to `transform`
sourceMap: true
}
});
For all possible transformOptions
, see transform in react-tools.
Developing
I would like to invite you to contribute to this project. Clone this repository from github, then run the following in its directory:
npm install
Start in index.js
Happy Hacking!