source: imaps-frontend/node_modules/@babel/plugin-transform-arrow-functions/lib/index.js

main
Last change on this file was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • Property mode set to 100644
File size: 812 bytes
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = void 0;
7var _helperPluginUtils = require("@babel/helper-plugin-utils");
8var _default = exports.default = (0, _helperPluginUtils.declare)((api, options) => {
9 var _api$assumption;
10 api.assertVersion(7);
11 const noNewArrows = (_api$assumption = api.assumption("noNewArrows")) != null ? _api$assumption : !options.spec;
12 return {
13 name: "transform-arrow-functions",
14 visitor: {
15 ArrowFunctionExpression(path) {
16 if (!path.isArrowFunctionExpression()) return;
17 {
18 path.arrowFunctionToExpression({
19 allowInsertArrow: false,
20 noNewArrows,
21 specCompliant: !noNewArrows
22 });
23 }
24 }
25 }
26 };
27});
28
29//# sourceMappingURL=index.js.map
Note: See TracBrowser for help on using the repository browser.