-
Notifications
You must be signed in to change notification settings - Fork 64
Installation
Alex Gilleran edited this page Jan 7, 2016
·
5 revisions
First up, obviously:
npm install --save-dev jsx-control-statements
How to use the plugin depends on how you configure Babel:
require("babel/register")({
plugins: ["jsx-control-statements/babel"]
});
babel --plugins jsx-control-statements/babel script.js
{
"plugins": ["jsx-control-statements/babel"]
}
browserify({
// etc etc
transform: [
babelify.configure({
plugins: ["jsx-control-statements/babel"]
})
]
});