Skip to content

Commit 1144493

Browse files
chnbohwrchnbohwr
authored andcommitted
use transform run time plugin to solve async issue
1 parent d26cbd7 commit 1144493

File tree

4 files changed

+35
-294
lines changed

4 files changed

+35
-294
lines changed

.babelrc

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,9 @@
44
"@babel/preset-react"
55
],
66
"plugins": [
7-
"@babel/plugin-proposal-function-bind",
8-
"@babel/plugin-proposal-export-default-from",
9-
"@babel/plugin-proposal-logical-assignment-operators",
10-
["@babel/plugin-proposal-optional-chaining", { "loose": false }],
11-
["@babel/plugin-proposal-pipeline-operator", { "proposal": "minimal" }],
12-
["@babel/plugin-proposal-nullish-coalescing-operator", { "loose": false }],
13-
"@babel/plugin-proposal-do-expressions",
7+
"@babel/plugin-transform-runtime",
148
["@babel/plugin-proposal-decorators", { "legacy": true }],
15-
"@babel/plugin-proposal-function-sent",
16-
"@babel/plugin-proposal-export-namespace-from",
17-
"@babel/plugin-proposal-numeric-separator",
18-
"@babel/plugin-proposal-throw-expressions",
19-
"@babel/plugin-syntax-dynamic-import",
20-
"@babel/plugin-syntax-import-meta",
21-
["@babel/plugin-proposal-class-properties", { "loose": true }],
22-
"@babel/plugin-proposal-json-strings",
9+
["@babel/plugin-proposal-class-properties", { "loose" : true }],
2310
"react-hot-loader/babel"
2411
]
2512
}

0 commit comments

Comments
 (0)