-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
30 lines (30 loc) · 795 Bytes
/
index.js
File metadata and controls
30 lines (30 loc) · 795 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
module.exports = function() {
return {
presets: [
[
"@babel/preset-env",
{
useBuiltIns: "entry",
corejs: 3,
modules: process.env.BABEL_ENV === "esm" ? false : "cjs",
exclude: ["transform-typeof-symbol"]
}
],
["@babel/preset-react", { useBuiltIns: true }]
],
plugins: [
["@babel/plugin-proposal-class-properties", { loose: true }],
["@babel/plugin-proposal-object-rest-spread", { useBuiltIns: true }],
[
"@babel/plugin-transform-runtime",
{
corejs: false,
helpers: false,
version: require("@babel/runtime/package.json").version,
regenerator: true
}
],
"@babel/plugin-transform-object-assign"
]
};
};