source: trip-planner-front/node_modules/@babel/plugin-transform-reserved-words/lib/index.js@ 6a3a178

Last change on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 580 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = void 0;
7
8var _helperPluginUtils = require("@babel/helper-plugin-utils");
9
10var _core = require("@babel/core");
11
12var _default = (0, _helperPluginUtils.declare)(api => {
13 api.assertVersion(7);
14 return {
15 name: "transform-reserved-words",
16 visitor: {
17 "BindingIdentifier|ReferencedIdentifier"(path) {
18 if (!_core.types.isValidES3Identifier(path.node.name)) {
19 path.scope.rename(path.node.name);
20 }
21 }
22
23 }
24 };
25});
26
27exports.default = _default;
Note: See TracBrowser for help on using the repository browser.