• function
 

Returns a list of babel presets to be used during transpilation

Fold.processBabelPresets(babel, babelOptions)

Returns a list of babel presets 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<BabelPreset | [>}

Promise that resolves to a list of babel presets

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

Help us improve StealJS by taking our community survey