Collects builtin presets names and non builtins objects/functions
Fold.doProcessPresets(babel, babelPresets)
Collects builtin presets names and non builtins objects/functions
Parameters
-
babel
{Object}
The babel object exported by babel-standalone
-
babelPresets
{BabelPreset | [}
A list of babel presets
Returns
{Promise<BabelPreset | [>}
A promise that resolves to a list of babel-standalone builtin preset names and non-builtin preset definitions (object or function).