From aa773172311dcada759dfbaac485f4bc6e00bc21 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sat, 14 Oct 2023 15:31:11 +0800 Subject: added babel --- .../@babel/cli/lib/babel-external-helpers.js | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 node_modules/@babel/cli/lib/babel-external-helpers.js (limited to 'node_modules/@babel/cli/lib/babel-external-helpers.js') diff --git a/node_modules/@babel/cli/lib/babel-external-helpers.js b/node_modules/@babel/cli/lib/babel-external-helpers.js new file mode 100644 index 00000000..e4932b19 --- /dev/null +++ b/node_modules/@babel/cli/lib/babel-external-helpers.js @@ -0,0 +1,32 @@ +"use strict"; + +function _commander() { + const data = require("commander"); + _commander = function () { + return data; + }; + return data; +} +function _core() { + const data = require("@babel/core"); + _core = function () { + return data; + }; + return data; +} +function collect(value, previousValue) { + if (typeof value !== "string") return previousValue; + const values = value.split(","); + if (previousValue) { + previousValue.push(...values); + return previousValue; + } + return values; +} +_commander().option("-l, --whitelist [whitelist]", "Whitelist of helpers to ONLY include", collect); +_commander().option("-t, --output-type [type]", "Type of output (global|umd|var)", "global"); +_commander().usage("[options]"); +_commander().parse(process.argv); +console.log((0, _core().buildExternalHelpers)(_commander().whitelist, _commander().outputType)); + +//# sourceMappingURL=babel-external-helpers.js.map -- cgit v1.2.3