Home

Awesome

babel-plugin-streamline

Enables streamline.js in the babel eco-system.

Installation

$ npm install babel-plugin-streamline

Babel options

{
	plugins: ["streamline"]
	extensions: [".js", "._js"],
	extra: {
		streamline: {
			runtime: 'callbacks',
			// more
		}
	}
}

The callbacks runtime of streamline needs the regenerator plug-in which is included by default in babel 5.x.

The other runtimes (fibers, generators) do not need regenerator so you should blacklist it.

See the babel API docs for details.

Links

License

MIT.