Skip to content
This repository has been archived by the owner on Mar 21, 2024. It is now read-only.

Babel plugin for streamline.js

License

Notifications You must be signed in to change notification settings

Sage/babel-plugin-streamline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.