babel-plugin-streamline

2.0.26 • Public • Published

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.

Dependencies (2)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i babel-plugin-streamline

    Weekly Downloads

    13

    Version

    2.0.26

    License

    MIT

    Last publish

    Collaborators

    • bjouhier