JSPM

fastboot-transform

0.1.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 48774
  • Score
    100M100P100Q147597F
  • License MIT

Utility to transform given broccoli tree that contains browser API to be fastboot complaint.

Package Exports

  • fastboot-transform

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (fastboot-transform) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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;
}