Sha256: 471541066aaaad7ef662a2f73274f608f176e299a4b029020abb804856bd23a1

Contents?: true

Size: 812 Bytes

Versions: 7

Compression:

Stored size: 812 Bytes

Contents

"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = void 0;
var _helperPluginUtils = require("@babel/helper-plugin-utils");
var _default = exports.default = (0, _helperPluginUtils.declare)((api, options) => {
  var _api$assumption;
  api.assertVersion(7);
  const noNewArrows = (_api$assumption = api.assumption("noNewArrows")) != null ? _api$assumption : !options.spec;
  return {
    name: "transform-arrow-functions",
    visitor: {
      ArrowFunctionExpression(path) {
        if (!path.isArrowFunctionExpression()) return;
        {
          path.arrowFunctionToExpression({
            allowInsertArrow: false,
            noNewArrows,
            specCompliant: !noNewArrows
          });
        }
      }
    }
  };
});

//# sourceMappingURL=index.js.map

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.51 node_modules/@babel/plugin-transform-arrow-functions/lib/index.js
immosquare-cleaner-0.1.50 node_modules/@babel/plugin-transform-arrow-functions/lib/index.js
immosquare-cleaner-0.1.49 node_modules/@babel/plugin-transform-arrow-functions/lib/index.js
immosquare-cleaner-0.1.48 node_modules/@babel/plugin-transform-arrow-functions/lib/index.js
immosquare-cleaner-0.1.47 node_modules/@babel/plugin-transform-arrow-functions/lib/index.js
immosquare-cleaner-0.1.46 node_modules/@babel/plugin-transform-arrow-functions/lib/index.js
immosquare-cleaner-0.1.45 node_modules/@babel/plugin-transform-arrow-functions/lib/index.js