lndsld

Home > @lndsld/config-builders > BabelConfigBuilder

BabelConfigBuilder class

Builder for babel configuration

Signature:

declare class BabelConfigBuilder<Environment = {}> 

Constructors

Constructor Modifiers Description
(constructor)(environment)   Constructs a new instance of the BabelConfigBuilder class

Properties

Property Modifiers Type Description
config   Readonly<BabelConfig> Current babel configuration
env   Readonly<Environment> Readonly build env

Methods

Method Modifiers Description
addPlugin(plugin)   Add babel plugin to configuration
addPreset(preset)   Add babel preset to configuration
apply(plugin)   Apply builder plugin
merge(config)   Merge another babel configuration