• function
 

Collects builtin presets names and non builtins objects/functions

Fold.doProcessPresets(babel, babelPresets)

Collects builtin presets names and non builtins objects/functions

Parameters

  1. babel {Object}

    The babel object exported by babel-standalone

  2. 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).

Help us improve StealJS by taking our community survey