Home > @lndsld/config-builders > BabelConfigBuilder
Builder for babel configuration
Signature:
declare class BabelConfigBuilder<Environment = {}>
Constructor | Modifiers | Description |
---|---|---|
(constructor)(environment) | Constructs a new instance of the BabelConfigBuilder class |
Property | Modifiers | Type | Description |
---|---|---|---|
config | Readonly<BabelConfig> | Current babel configuration | |
env | Readonly<Environment> | Readonly build env |
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 |