added async-to-promises transform (#6797)
Replaced regenerator with async-to-promises
This commit is contained in:
parent
035890f9cd
commit
84fbd4b594
3 changed files with 10 additions and 1 deletions
|
@ -56,6 +56,7 @@
|
|||
"babel-loader": "8.0.2",
|
||||
"babel-plugin-dynamic-import-node": "2.2.0",
|
||||
"babel-plugin-react-require": "3.0.0",
|
||||
"babel-plugin-transform-async-to-promises": "0.8.7",
|
||||
"babel-plugin-transform-react-remove-prop-types": "0.4.15",
|
||||
"chalk": "2.4.2",
|
||||
"find-cache-dir": "2.0.0",
|
||||
|
|
|
@ -15,8 +15,11 @@ const babelOpts = {
|
|||
['@babel/plugin-transform-runtime', {
|
||||
corejs: 2,
|
||||
helpers: true,
|
||||
regenerator: true,
|
||||
regenerator: false,
|
||||
useESModules: false
|
||||
}],
|
||||
['babel-plugin-transform-async-to-promises', {
|
||||
inlineHelpers: true
|
||||
}]
|
||||
]
|
||||
}
|
||||
|
|
|
@ -2569,6 +2569,11 @@ babel-plugin-syntax-object-rest-spread@^6.13.0:
|
|||
resolved "https://registry.yarnpkg.com/babel-plugin-syntax-object-rest-spread/-/babel-plugin-syntax-object-rest-spread-6.13.0.tgz#fd6536f2bce13836ffa3a5458c4903a597bb3bf5"
|
||||
integrity sha1-/WU28rzhODb/o6VFjEkDpZe7O/U=
|
||||
|
||||
babel-plugin-transform-async-to-promises@0.8.7:
|
||||
version "0.8.7"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-async-to-promises/-/babel-plugin-transform-async-to-promises-0.8.7.tgz#8e9d214f54a0fabba4088dda4c8df214d4698429"
|
||||
integrity sha512-znRrOjUy8gDHs6c40dpqVnYrzvCEWyISnLVS1U1ZJvahX2YF19tI8Rq3tI7u7SFe4bE48oceEVY437pYDnRYpQ==
|
||||
|
||||
babel-plugin-transform-react-remove-prop-types@0.4.15:
|
||||
version "0.4.15"
|
||||
resolved "https://registry.yarnpkg.com/babel-plugin-transform-react-remove-prop-types/-/babel-plugin-transform-react-remove-prop-types-0.4.15.tgz#7ba830e77276a0e788cd58ea527b5f70396e12a7"
|
||||
|
|
Loading…
Reference in a new issue