fastboot-transform

0.1.3 • Public • Published

fastboot-transform

Transforms a given broccoli tree, which contains files using browser APIs, to be FastBoot compliant.

Usage

If your library here at a/b/c.js contains:

window.foo = bar;

The above file is not compatible in FastBoot. Therefore, you will need to wrap it with:

var fastboot-transform = require('fastboot-transform');
 
fastboot-transform(new Funnel('a/b/c.js'));

The result of the above is:

if (typeof FastBoot === 'undefined') {
 window.foo = bar;
}

/fastboot-transform/

    Package Sidebar

    Install

    npm i fastboot-transform

    Weekly Downloads

    56,118

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    46 kB

    Total Files

    5

    Last publish

    Collaborators

    • kratiahuja