parent
8107a6faa2
commit
a9660cf559
@ -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,
|
||||
),
|
||||
);
|
||||
},
|
||||
|
||||
@ -0,0 +1 @@
|
||||
bar[filter]()
|
||||
@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": [["transform-runtime", { "corejs": 2 }], "transform-regenerator"]
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
bar[filter]();
|
||||
@ -0,0 +1 @@
|
||||
bar[filter]()
|
||||
@ -0,0 +1,3 @@
|
||||
{
|
||||
"plugins": [["transform-runtime", { "corejs": 3 }], "transform-regenerator"]
|
||||
}
|
||||
@ -0,0 +1,3 @@
|
||||
var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
|
||||
|
||||
_filterInstanceProperty(bar).call(bar);
|
||||
Loading…
x
Reference in New Issue
Block a user