This commit is contained in:
Sagiv ben giat 2019-07-12 19:00:25 +03:00 committed by Brian Ng
parent 8107a6faa2
commit a9660cf559
7 changed files with 13 additions and 1 deletions

View File

@ -432,6 +432,7 @@ export default declare((api, options, dirname) => {
exit(path) {
if (!injectCoreJS) return;
if (!path.isReferenced()) return;
if (path.node.computed) return;
const { node } = path;
const { object } = node;
@ -447,7 +448,6 @@ export default declare((api, options, dirname) => {
name,
),
node.property,
node.computed,
),
);
},

View File

@ -0,0 +1,3 @@
{
"plugins": [["transform-runtime", { "corejs": 2 }], "transform-regenerator"]
}

View File

@ -0,0 +1,3 @@
{
"plugins": [["transform-runtime", { "corejs": 3 }], "transform-regenerator"]
}

View File

@ -0,0 +1,3 @@
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
_filterInstanceProperty(bar).call(bar);