@launchpadlab/babel-preset
v2.1.1
Published
Shareable babel presets to use across projects.
Downloads
4,098
Readme
@launchpadlab/babel-preset
Shareable babel presets to use across projects.
Usage:
// .babelrc:
// To use a specific config
{
presets: ['@launchpadlab/babel-preset/es6'],
}
// To use the default config (react)
{
presets: ['@launchpadlab/babel-preset'],
}
This preset uses @babel/preset-env under the hood. To pass options down to that preset, you can pass an env
option at the top level:
{
// Will skip module transformations
presets: [['@launchpadlab/babel-preset', { env: { modules: false } }]],
}