Sha256: d5080221caaed8233195e6968923d81aa609d7f96e6c7f3b15442772781607ee

Contents?: true

Size: 930 Bytes

Versions: 23

Compression:

Stored size: 930 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) => {
  api.assertVersion(7);
  const {
    all,
    enums
  } = options;
  if (typeof all !== "boolean" && typeof all !== "undefined") {
    throw new Error(".all must be a boolean, or undefined");
  }
  if (typeof enums !== "boolean" && typeof enums !== "undefined") {
    throw new Error(".enums must be a boolean, or undefined");
  }
  return {
    name: "syntax-flow",
    manipulateOptions(opts, parserOpts) {
      {
        if (parserOpts.plugins.some(p => (Array.isArray(p) ? p[0] : p) === "typescript")) {
          return;
        }
      }
      parserOpts.plugins.push(["flow", {
        all,
        enums
      }]);
    }
  };
});

//# sourceMappingURL=index.js.map

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.60 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.59 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.58 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.57 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.56 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.55 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.54 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.53 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.52 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.51 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.50 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.49 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.48 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.47 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.46 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.45 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.44 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.43 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.42 node_modules/@babel/plugin-syntax-flow/lib/index.js
immosquare-cleaner-0.1.41 node_modules/@babel/plugin-syntax-flow/lib/index.js