• function
 

Babel plugin that sets __esModule to true

Fold.addESModuleFlagPlugin(babel)

Babel plugin that sets __esModule to true

Parameters

  1. babel {*}

This flag is needed to interop the SystemJS format used by steal on the browser in development with the CJS format used for built modules.

With dev bundles is possible to load a part of the app already built while other modules are being transpiled on the fly, with this flag, transpiled amd modules will be able to load the modules transpiled on the browser.

Help us improve StealJS by taking our community survey