Fix handling of this&co in computed keys in arrows transform (#14005)

This commit is contained in:
Nicolò Ribaudo
2021-11-30 22:54:17 +01:00
committed by GitHub
parent 893650130a
commit 36a5ac4145
20 changed files with 286 additions and 117 deletions

View File

@@ -15,6 +15,7 @@
"main": "./lib/index.js",
"dependencies": {
"@babel/helper-annotate-as-pure": "workspace:^",
"@babel/helper-environment-visitor": "workspace:^",
"@babel/helper-function-name": "workspace:^",
"@babel/helper-optimise-call-expression": "workspace:^",
"@babel/helper-plugin-utils": "workspace:^",

View File

@@ -1,8 +1,7 @@
import type { NodePath, Visitor } from "@babel/traverse";
import nameFunction from "@babel/helper-function-name";
import ReplaceSupers, {
environmentVisitor,
} from "@babel/helper-replace-supers";
import ReplaceSupers from "@babel/helper-replace-supers";
import environmentVisitor from "@babel/helper-environment-visitor";
import optimiseCall from "@babel/helper-optimise-call-expression";
import { traverse, template, types as t } from "@babel/core";
import annotateAsPure from "@babel/helper-annotate-as-pure";