The Repodog Babel preset.
# terminal
npm install @repodog/babel-preset @babel/core @babel/runtime --save-dev
// babel.config.cjs
module.exports = {
presets: ['@repodog/babel-preset'],
};
When set to 'cjs'
, sets modules
to 'commonjs'
. Default 'esm'
.
Changes targets
to latest version of chrome / current version of nodejs. Also sets @babel/preset-env
debug field. Default 'false'
.
Changes targets
to browser based or nodejs based. Default 'node'
.
Sets @babel/preset-react
development field. Default 'development'
.