lasso-babel
v1.0.3
Published
Lasso.js plugin to transform your JavaScript with babel
Downloads
26
Readme
lasso-babel
This Node.js module is a plugin for the Lasso.js, that provides support to compile JavaScript with Babel.
Install
$ npm install --save lasso-babel
Install Babel preset you need for your project
$ npm install --save babel-preset-es2015
Usage
In your dependencies list in browser.json
, just go ahead and all your source .jsx files
[
"babel:main.js",
"babel:components/toolbar.js",
...
]
And add lasso-babel
as the required plugin in lasso-config.json
{
"plugins": [
{
"plugin": "lasso-babel",
"config": {
"presets": ["es2015"]
}
}
...
],
...
}