lasso-babel

1.0.3 • Public • Published

lasso-babel

Build Status

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"]
         }
        }
        ...
    ],
    ...
}

You can also put the Options to .babelrc if you'd like to.

Package Sidebar

Install

npm i lasso-babel

Weekly Downloads

4

Version

1.0.3

License

ISC

Last publish

Collaborators

  • keshin