main
Last change
on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 5 days ago |
F4 Finalna Verzija
|
-
Property mode
set to
100644
|
File size:
601 bytes
|
Rev | Line | |
---|
[79a0317] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | Object.defineProperty(exports, "__esModule", {
|
---|
| 4 | value: true
|
---|
| 5 | });
|
---|
| 6 | exports.default = void 0;
|
---|
| 7 | var _helperPluginUtils = require("@babel/helper-plugin-utils");
|
---|
| 8 | var _core = require("@babel/core");
|
---|
| 9 | var _default = exports.default = (0, _helperPluginUtils.declare)(api => {
|
---|
| 10 | api.assertVersion(7);
|
---|
| 11 | return {
|
---|
| 12 | name: "transform-reserved-words",
|
---|
| 13 | visitor: {
|
---|
| 14 | "BindingIdentifier|ReferencedIdentifier"(path) {
|
---|
| 15 | if (!_core.types.isValidES3Identifier(path.node.name)) {
|
---|
| 16 | path.scope.rename(path.node.name);
|
---|
| 17 | }
|
---|
| 18 | }
|
---|
| 19 | }
|
---|
| 20 | };
|
---|
| 21 | });
|
---|
| 22 |
|
---|
| 23 | //# sourceMappingURL=index.js.map
|
---|
Note:
See
TracBrowser
for help on using the repository browser.