source: trip-planner-front/node_modules/@babel/plugin-transform-arrow-functions/lib/index.js@ fa375fe

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

initial commit

  • Property mode set to 100644
File size: 761 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 _default = (0, _helperPluginUtils.declare)((api, options) => {
11 var _api$assumption;
12
13 api.assertVersion(7);
14 const noNewArrows = (_api$assumption = api.assumption("noNewArrows")) != null ? _api$assumption : !options.spec;
15 return {
16 name: "transform-arrow-functions",
17 visitor: {
18 ArrowFunctionExpression(path) {
19 if (!path.isArrowFunctionExpression()) return;
20 path.arrowFunctionToExpression({
21 allowInsertArrow: false,
22 noNewArrows,
23 specCompliant: !noNewArrows
24 });
25 }
26
27 }
28 };
29});
30
31exports.default = _default;
Note: See TracBrowser for help on using the repository browser.