@repodog/babel-config v7.0.5
@repodog/babel-config
The Repodog Babel config.
Install package and peer dependencies
# terminal
npm install @repodog/babel-config @babel/core @babel/runtime --save-devInstall optional peer dependency
# terminal
npm install @rollup/plugin-babel --save-devUse package
// babel.config.cjs
const repodogConfig = require('@repodog/babel-config');
module.exports = api => ({
...repodogConfig(api),
});Usage with rollup
// rollup.config.mjs
import rollupConfig from '@repodog/rollup-config';
import babelConfig from '@repodog/babel-config/rollup';
import { babel as babelPlugin } from '@rollup/plugin-babel';
export default {
...rollupConfig({ compiler: babelPlugin(babelConfig) }),
};Environment variables
BABEL_DISABLE_CACHE = 'true' || 'false'
Disables the Babel cache. Default 'false'.
JS_ENV = 'web' || 'node'
Used as cache key when Babel cache is enabled.
NODE_ENV = 'production' || 'development' || 'test'
Ignores test files when NODE_ENV is not 'test'.
You can also use the environment variables outlined in @repodog/babel-preset to control what is output.
6 months ago
11 months ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago