2020-01-10 08:14:50 +08:00
|
|
|
module.exports = {
|
2022-12-12 19:24:14 +08:00
|
|
|
sourceMaps: "inline",
|
|
|
|
presets: [
|
|
|
|
[
|
|
|
|
"@babel/preset-env",
|
|
|
|
{
|
|
|
|
targets: [
|
|
|
|
"last 2 Chrome versions",
|
|
|
|
"last 2 Firefox versions",
|
|
|
|
"last 2 Safari versions",
|
|
|
|
"last 2 Edge versions",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
],
|
2019-12-13 05:37:14 +08:00
|
|
|
"@babel/preset-typescript",
|
2021-03-05 21:19:06 +08:00
|
|
|
"@babel/preset-react",
|
2019-03-29 00:22:17 +08:00
|
|
|
],
|
2022-12-12 19:24:14 +08:00
|
|
|
plugins: [
|
2019-12-20 09:02:25 +08:00
|
|
|
"@babel/plugin-proposal-export-default-from",
|
2019-12-13 05:37:14 +08:00
|
|
|
"@babel/plugin-proposal-numeric-separator",
|
|
|
|
"@babel/plugin-proposal-class-properties",
|
|
|
|
"@babel/plugin-proposal-object-rest-spread",
|
|
|
|
"@babel/plugin-syntax-dynamic-import",
|
2021-03-05 21:19:06 +08:00
|
|
|
"@babel/plugin-transform-runtime",
|
|
|
|
],
|
2020-01-10 08:14:50 +08:00
|
|
|
};
|