-
Notifications
You must be signed in to change notification settings - Fork 275
/
.babelrc.js
34 lines (34 loc) · 891 Bytes
/
.babelrc.js
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
// The content of babel.config.js copied here. This is due to the bug in jest - https://github.com/jestjs/jest/issues/11741
// The bug has been resolved with jest 30 - https://github.com/jestjs/jest/commit/983274ac08c67d2a445e111b2dfaf81020f912b2
module.exports = {
env: {
production: {
presets: [
[
'@babel/env',
{
modules: false,
},
],
],
},
test: {
plugins: ['transform-es2015-modules-commonjs'],
presets: [
[
'@babel/preset-env',
{
modules: 'commonjs',
},
],
],
},
},
ignore: ['src/@types/*'],
plugins: [
'@babel/plugin-proposal-class-properties',
'@babel/plugin-transform-runtime',
'babel-plugin-dynamic-import-node',
],
presets: ['@babel/preset-typescript', '@babel/env', '@babel/preset-react'],
};