Sage / babel-plugin-streamline

Babel plugin for streamline.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

  • Issues are centralized in the streamlinejs GitHub repository.

License

MIT.

About

Babel plugin for streamline.js

License:MIT License


Languages

Language:JavaScript 100.0%