@repodog/babel-preset
v7.0.3
Published
The Repodog Babel preset module.
Downloads
35
Readme
@repodog/babel-preset
The Repodog Babel preset.
Install package and peer dependencies
# terminal
npm install @repodog/babel-preset @babel/core @babel/runtime --save-dev
Use package
// babel.config.cjs
module.exports = {
presets: ['@repodog/babel-preset'],
};
Environment variables
BABEL_MODULE_SYSTEM
= 'esm' || 'cjs'
When set to 'cjs'
, sets modules
to 'commonjs'
. Default 'esm'
.
DEBUG
= 'true' || 'false'
Changes targets
to latest version of chrome / current version of nodejs. Also sets @babel/preset-env
debug field. Default 'false'
.
JS_ENV
= 'web' || 'node'
Changes targets
to browser based or nodejs based. Default 'node'
.
NODE_ENV
= 'production' || 'development' || 'test'
Sets @babel/preset-react
development field. Default 'development'
.