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