Add @babel/helper-validator-identifier (#11289)

* refactor: replace esutils.keywords.isIdentifierNameES6 by helper-validator-identifier

* refactor: replace esutils isReservedWordES6 by isKeyword || isReservedWord

* address review comments

* chore: specify both “main” and “exports”

* build helper-validator-identifier before babel-types
This commit is contained in:
Huáng Jùnliàng
2020-03-20 07:23:14 -04:00
committed by GitHub
parent 693a5df7a9
commit e39b508030
21 changed files with 304 additions and 169 deletions

View File

@@ -30,8 +30,8 @@
"devDependencies": {
"@babel/code-frame": "^7.8.3",
"@babel/helper-fixtures": "^7.8.6",
"charcodes": "^0.2.0",
"unicode-13.0.0": "^0.8.0"
"@babel/helper-validator-identifier": "^7.9.0",
"charcodes": "^0.2.0"
},
"bin": {
"parser": "./bin/babel-parser.js"