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

main
Last change on this file since 79a0317 was 79a0317, checked in by stefan toskovski <stefantoska84@…>, 4 days ago

F4 Finalna Verzija

  • 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");
8var _plugins = 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 {
13 if (item.startsWith("transform-")) {
14 const proposalName = `proposal-${item.slice(10)}`;
15 if (proposalName === "proposal-dynamic-import" || hasOwnProperty.call(_plugins, proposalName)) {
16 item = proposalName;
17 }
18 }
19 }
20 if (!support) {
21 console.log(` ${item}`);
22 return;
23 }
24 let formattedTargets = `{`;
25 let first = true;
26 for (const target of Object.keys(filteredList)) {
27 if (!first) formattedTargets += `,`;
28 first = false;
29 formattedTargets += ` ${target}`;
30 if (support[target]) formattedTargets += ` < ${support[target]}`;
31 }
32 formattedTargets += ` }`;
33 console.log(` ${item} ${formattedTargets}`);
34};
35exports.logPlugin = logPlugin;
36
37//# sourceMappingURL=debug.js.map
Note: See TracBrowser for help on using the repository browser.