source: frontend/node_modules/@babel/plugin-syntax-flow/lib/index.js

Last change on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago

Fix frontend appearance

  • Property mode set to 100644
File size: 899 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 api.assertVersion("^7.0.0-0 || ^8.0.0-0");
10 const {
11 all,
12 enums
13 } = options;
14 if (typeof all !== "boolean" && all !== undefined) {
15 throw new Error(".all must be a boolean, or undefined");
16 }
17 if (enums === false) {
18 console.warn("The .enums option has been removed and it's now always enabled.");
19 }
20 return {
21 name: "syntax-flow",
22 manipulateOptions(opts, parserOpts) {
23 if (parserOpts.plugins.some(p => (Array.isArray(p) ? p[0] : p) === "typescript")) {
24 return;
25 }
26 parserOpts.plugins.push(["flow", {
27 all,
28 enums
29 }]);
30 }
31 };
32});
33
34//# sourceMappingURL=index.js.map
Note: See TracBrowser for help on using the repository browser.