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