@trinitymirrordigital/dragonfly-babel-setup
v4.0.6-alpha.0
Published
Babel set up for dragonfly projects
Downloads
125
Maintainers
Keywords
Readme
@trinitymirrordigital/dragonfly-babel-setup
Standard Babel set up for dragonfly projects
Usage
Basic setup:
const babelConfig = require('@trinitymirrordigital/dragonfly-babel-setup');
module.exports = babelConfig();
Tweaks setup:
const babelConfig = require('@trinitymirrordigital/dragonfly-babel-setup');
module.exports = babelConfig({
presets: {
config: { ... } // tweaks to https://babeljs.io/docs/en/babel-preset-env config - defaults below
additional: [ ... /*additional presets here */ ]
}
plugins: [ ... /* addtional plugins here */]
});
Presets
Default setup:
{
debug: false,
corejs: 3,
modules: 'auto',
useBuiltIns: 'usage'
}
Plugins
- @babel/plugin-transform-runtime - Development only
- babel-plugin-date-fns
- babel-plugin-lodash
- babel-plugin-ramda
Copyright (c) 2022 "Reach Shared Services Ltd"