Skip to content

keshin/lasso-babel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Lasso plugin for transform JavaScript with Babel

Resources

Stars

Watchers

Forks

Packages

No packages published