diff --git a/packages/babel-helper-validator-identifier/src/keyword.js b/packages/babel-helper-validator-identifier/src/keyword.js index d2140669ea1d..d062275cc022 100644 --- a/packages/babel-helper-validator-identifier/src/keyword.js +++ b/packages/babel-helper-validator-identifier/src/keyword.js @@ -58,9 +58,9 @@ const reservedWordsStrictBindSet = new Set(reservedWords.strictBind); /** * Checks if word is a reserved word in non-strict mode */ -export const isReservedWord = (word: string, inModule: boolean): boolean => { +export function isReservedWord(word: string, inModule: boolean): boolean { return (inModule && word === "await") || word === "enum"; -}; +} /** * Checks if word is a reserved word in non-binding strict mode diff --git a/packages/babel-types/package.json b/packages/babel-types/package.json index 7dabdcfcdc12..da16e6d46f1f 100644 --- a/packages/babel-types/package.json +++ b/packages/babel-types/package.json @@ -12,10 +12,10 @@ "main": "lib/index.js", "types": "lib/index.d.ts", "dependencies": { + "@babel/helper-validator-identifier": "^7.9.0", "esutils": "^2.0.2", "lodash": "^4.17.13", - "to-fast-properties": "^2.0.0", - "@babel/helper-validator-identifier": "^7.9.0" + "to-fast-properties": "^2.0.0" }, "devDependencies": { "@babel/generator": "^7.8.7",