Skip to content

Commit

Permalink
resolve #10205 (#10207)
Browse files Browse the repository at this point in the history
  • Loading branch information
sag1v authored and existentialism committed Jul 12, 2019
1 parent 8107a6f commit a9660cf
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-plugin-transform-runtime/src/index.js
Expand Up @@ -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;
Expand All @@ -447,7 +448,6 @@ export default declare((api, options, dirname) => {
name,
),
node.property,
node.computed,
),
);
},
Expand Down
@@ -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);

0 comments on commit a9660cf

Please sign in to comment.