source: frontend/node_modules/@babel/preset-env/lib/debug.js

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

Fix frontend appearance

  • Property mode set to 100644
File size: 1.1 KB
Line 
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.logPlugin = void 0;
7var _helperCompilationTargets = require("@babel/helper-compilation-targets");
8const compatData = require("@babel/compat-data/plugins");
9const logPlugin = (item, targetVersions, list) => {
10 const filteredList = (0, _helperCompilationTargets.getInclusionReasons)(item, targetVersions, list);
11 const support = list[item];
12 if (item.startsWith("transform-")) {
13 const proposalName = `proposal-${item.slice(10)}`;
14 if (proposalName === "proposal-dynamic-import" || hasOwnProperty.call(compatData, proposalName)) {
15 item = proposalName;
16 }
17 }
18 if (!support) {
19 console.log(` ${item}`);
20 return;
21 }
22 let formattedTargets = `{`;
23 let first = true;
24 for (const target of Object.keys(filteredList)) {
25 if (!first) formattedTargets += `,`;
26 first = false;
27 formattedTargets += ` ${target}`;
28 if (support[target]) formattedTargets += ` < ${support[target]}`;
29 }
30 formattedTargets += ` }`;
31 console.log(` ${item} ${formattedTargets}`);
32};
33exports.logPlugin = logPlugin;
34
35//# sourceMappingURL=debug.js.map
Note: See TracBrowser for help on using the repository browser.