-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbabel.config.cjs
More file actions
36 lines (35 loc) · 956 Bytes
/
babel.config.cjs
File metadata and controls
36 lines (35 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/**
* Babel configuration shared across the repo.
*/
require('dotenv').config();
/**
* @type {import('@babel/core').TransformOptions}
*/
module.exports = {
babelrc: false,
presets: ['@babel/preset-env', '@babel/preset-react', '@babel/preset-typescript'],
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-transform-runtime',
'@babel/plugin-syntax-import-meta',
],
ignore: process.env.BABEL_IGNORE
? process.env.BABEL_IGNORE.split(',')
: [
'build',
'dist',
'coverage',
'test-results',
'vendor',
'.next',
'logs',
'tmp',
'.cache',
'.husky',
'.vercel',
'.netlify',
'.storybook',
'docs/mustache-repo-templates',
],
};