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,
),
);
},