• function
 

Returns a list of babel plugins to be used during transpilation

Fold.processBabelPlugins(babel, babelOptions)

Returns a list of babel plugins to be used during transpilation

Parameters

  1. babel {Object}

    The babel object exported by babel-standalone

  2. babelOptions {The babel configuration options}

    The babel configuration object

Returns

{Promise<BabelPlugin | [>}

Promise that resolves to a list of babel plugins

Collects the babel plugins defined in babelOptions.plugins plus the environment dependant plugins.

Help us improve StealJS by taking our community survey