-
Notifications
You must be signed in to change notification settings - Fork 64
Installation
Diéssica Gurskas edited this page Feb 16, 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 --plugins jsx-control-statements script.js
{
"plugins": ["jsx-control-statements"]
}
browserify({
// etc etc
transform: [
babelify.configure({
plugins: ["jsx-control-statements"]
})
]
});
Using babel-loader
.
loader: "babel?plugins=jsx-control-statements/babel"