diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 15:31:11 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2023-10-14 15:31:11 +0800 |
| commit | aa773172311dcada759dfbaac485f4bc6e00bc21 (patch) | |
| tree | ca6d9a5eff3ab8f689f9acb4f0df791d9486813d /node_modules/@babel/preset-env/lib/debug.js | |
| parent | c5a5384e846f242e901e859fe600d695d8990a9a (diff) | |
added babel
Diffstat (limited to 'node_modules/@babel/preset-env/lib/debug.js')
| -rw-r--r-- | node_modules/@babel/preset-env/lib/debug.js | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/node_modules/@babel/preset-env/lib/debug.js b/node_modules/@babel/preset-env/lib/debug.js new file mode 100644 index 00000000..11e23eb3 --- /dev/null +++ b/node_modules/@babel/preset-env/lib/debug.js @@ -0,0 +1,37 @@ +"use strict"; + +Object.defineProperty(exports, "__esModule", { + value: true +}); +exports.logPlugin = void 0; +var _helperCompilationTargets = require("@babel/helper-compilation-targets"); +var _plugins = require("@babel/compat-data/plugins"); +const logPlugin = (item, targetVersions, list) => { + const filteredList = (0, _helperCompilationTargets.getInclusionReasons)(item, targetVersions, list); + const support = list[item]; + { + if (item.startsWith("transform-")) { + const proposalName = `proposal-${item.slice(10)}`; + if (proposalName === "proposal-dynamic-import" || Object.prototype.hasOwnProperty.call(_plugins, proposalName)) { + item = proposalName; + } + } + } + if (!support) { + console.log(` ${item}`); + return; + } + let formattedTargets = `{`; + let first = true; + for (const target of Object.keys(filteredList)) { + if (!first) formattedTargets += `,`; + first = false; + formattedTargets += ` ${target}`; + if (support[target]) formattedTargets += ` < ${support[target]}`; + } + formattedTargets += ` }`; + console.log(` ${item} ${formattedTargets}`); +}; +exports.logPlugin = logPlugin; + +//# sourceMappingURL=debug.js.map |
