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
-
babel
{Object}
The babel object exported by babel-standalone
-
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.