-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbabel.config.js
More file actions
28 lines (27 loc) · 964 Bytes
/
Copy pathbabel.config.js
File metadata and controls
28 lines (27 loc) · 964 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
// babel.config.js
module.exports = {
presets: [
[
"@babel/preset-env",
{
"targets": {
"edge": "17",
"firefox": "60",
"chrome": "67",
"safari": "11.1",
"node":"current"
}
// no useBuiltIns/corejs: this config is consumed by babel-jest only (webpack.common.js
// carries its own inline babel options, no polyfills) and the corejs pin pointed at
// core-js@3 while the installed dependency is core-js@2 - polyfill imports emitted for
// jest could never resolve. Tests run under current node; no polyfills needed.
}
],
"@babel/preset-react",
"@babel/preset-flow"
],
plugins: [
"@babel/plugin-proposal-object-rest-spread",
"@babel/plugin-proposal-class-properties"
]
};