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 |
|
---|
3 | Object.defineProperty(exports, "__esModule", {
|
---|
4 | value: true
|
---|
5 | });
|
---|
6 | exports.logPlugin = void 0;
|
---|
7 | var _helperCompilationTargets = require("@babel/helper-compilation-targets");
|
---|
8 | var _plugins = require("@babel/compat-data/plugins");
|
---|
9 | const 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 | };
|
---|
35 | exports.logPlugin = logPlugin;
|
---|
36 |
|
---|
37 | //# sourceMappingURL=debug.js.map
|
---|
Note:
See
TracBrowser
for help on using the repository browser.