-
Notifications
You must be signed in to change notification settings - Fork 6
/
.babelrc.js
40 lines (40 loc) · 930 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
35
36
37
38
39
40
module.exports = {
plugins: [
require(`babel-plugin-import-graphql`),
require(`@babel/plugin-transform-runtime`),
require(`@babel/plugin-proposal-class-properties`),
require(`@babel/plugin-transform-object-assign`),
require(`@babel/plugin-proposal-object-rest-spread`)
],
presets: [
require(`@babel/preset-typescript`),
[
require(`@babel/preset-env`),
{
targets: { node: 12 },
modules: false,
useBuiltIns: `usage`,
corejs: 3,
bugfixes: true
}
]
],
env: {
test: {
sourceMaps: `inline`,
plugins: [require(`@babel/plugin-transform-runtime`)],
presets: [
[
require(`@babel/preset-env`),
{
targets: { node: 12 },
modules: `commonjs`,
useBuiltIns: `usage`,
corejs: 3,
bugfixes: true
}
]
]
}
}
};