7.0.3 • Published 9 months ago

@repodog/babel-config v7.0.3

Weekly downloads
26
License
MIT
Repository
github
Last release
9 months ago

@repodog/babel-config

The Repodog Babel config.

npm version License: MIT

Install package and peer dependencies

# terminal
npm install @repodog/babel-config @babel/core @babel/runtime --save-dev

Install optional peer dependency

# terminal
npm install @rollup/plugin-babel --save-dev

Use package

// babel.config.cjs
const repodogConfig = require('@repodog/babel-config');

module.exports = api => ({
  ...repodogConfig(api),
});

Usage with rollup

const rollupConfig = require('@repodog/rollup-config');
const babelConfig = require('@repodog/babel-config/rollup');
const { babel: babelPlugin } = require('@rollup/plugin-babel');

module.exports = {
  ...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 cam also use the environment variables outlined in @repodog/babel-preset to control what is output.

7.0.3

9 months ago

7.0.1

9 months ago

1.2.3-alpha-12345.0

10 months ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.12

1 year ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.11

2 years ago

1.1.10

2 years ago

1.1.1

2 years ago

1.0.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.0-alpha.0

2 years ago

1.0.1-alpha.0

2 years ago

1.0.0-alpha.0

2 years ago

0.3.32

5 years ago

0.3.31

5 years ago

0.3.30

5 years ago

0.3.29

5 years ago

0.3.28

6 years ago

0.3.27

6 years ago

0.3.26

6 years ago

0.3.25

6 years ago

0.3.24

6 years ago

0.3.23

6 years ago

0.3.22

6 years ago

0.3.21

6 years ago

0.3.20

6 years ago

0.3.18

6 years ago

0.3.17

6 years ago

0.3.16

6 years ago

0.3.15

6 years ago

0.3.12

6 years ago

0.3.10

6 years ago

0.2.26

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago