Skip to content

Commit

Permalink
feat: install @babel/plugin-transform-reserved-words
Browse files Browse the repository at this point in the history
  • Loading branch information
aminya committed Oct 22, 2020
1 parent 05c3893 commit bc788ce
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ module.exports = (api, options, dirname) => {

// not strict
[require("babel-plugin-transform-not-strict"), {removeAll: removeAllUseStrict, directiveTriggers: notStrictDirectiveTriggers, commentTriggers: notStrictCommentTriggers}],

// reserved keywords
require("@babel/plugin-transform-reserved-words")
];

// transform modules (e.g when without Rollup)
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
"babel-plugin-add-module-exports": "^1.0.4",
"babel-plugin-codegen": "^4.0.1",
"babel-plugin-preval": "^5.0.0",
"babel-plugin-transform-not-strict": "^0.3.1"
"babel-plugin-transform-not-strict": "^0.3.1",
"@babel/plugin-transform-reserved-words": "^7.12.1"
},
"peerDependencies": {
"@babel/cli": "^7",
Expand Down
2 changes: 2 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bc788ce

Please sign in to comment.