first
This commit is contained in:
22
node_modules/@babel/plugin-transform-runtime/LICENSE
generated
vendored
Normal file
22
node_modules/@babel/plugin-transform-runtime/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2014-present Sebastian McKenzie and other contributors
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
19
node_modules/@babel/plugin-transform-runtime/README.md
generated
vendored
Normal file
19
node_modules/@babel/plugin-transform-runtime/README.md
generated
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
# @babel/plugin-transform-runtime
|
||||
|
||||
> Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals
|
||||
|
||||
See our website [@babel/plugin-transform-runtime](https://babeljs.io/docs/babel-plugin-transform-runtime) for more information.
|
||||
|
||||
## Install
|
||||
|
||||
Using npm:
|
||||
|
||||
```sh
|
||||
npm install --save-dev @babel/plugin-transform-runtime
|
||||
```
|
||||
|
||||
or using yarn:
|
||||
|
||||
```sh
|
||||
yarn add @babel/plugin-transform-runtime --dev
|
||||
```
|
16
node_modules/@babel/plugin-transform-runtime/lib/get-runtime-path/browser.js
generated
vendored
Normal file
16
node_modules/@babel/plugin-transform-runtime/lib/get-runtime-path/browser.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = _default;
|
||||
exports.resolveFSPath = resolveFSPath;
|
||||
function _default(moduleName, dirname, absoluteRuntime) {
|
||||
if (absoluteRuntime === false) return moduleName;
|
||||
resolveFSPath();
|
||||
}
|
||||
function resolveFSPath() {
|
||||
throw new Error("The 'absoluteRuntime' option is not supported when using @babel/standalone.");
|
||||
}
|
||||
|
||||
//# sourceMappingURL=browser.js.map
|
1
node_modules/@babel/plugin-transform-runtime/lib/get-runtime-path/browser.js.map
generated
vendored
Normal file
1
node_modules/@babel/plugin-transform-runtime/lib/get-runtime-path/browser.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"names":["_default","moduleName","dirname","absoluteRuntime","resolveFSPath","Error"],"sources":["../../src/get-runtime-path/browser.ts"],"sourcesContent":["export default function (\n moduleName: string,\n dirname: string,\n absoluteRuntime: string | boolean,\n) {\n if (absoluteRuntime === false) return moduleName;\n\n resolveFSPath();\n}\n\nexport function resolveFSPath() {\n throw new Error(\n \"The 'absoluteRuntime' option is not supported when using @babel/standalone.\",\n );\n}\n"],"mappings":";;;;;;;AAAe,SAAAA,SACbC,UAAkB,EAClBC,OAAe,EACfC,eAAiC,EACjC;EACA,IAAIA,eAAe,KAAK,KAAK,EAAE,OAAOF,UAAU;EAEhDG,aAAa,CAAC,CAAC;AACjB;AAEO,SAASA,aAAaA,CAAA,EAAG;EAC9B,MAAM,IAAIC,KAAK,CACb,6EACF,CAAC;AACH"}
|
40
node_modules/@babel/plugin-transform-runtime/lib/get-runtime-path/index.js
generated
vendored
Normal file
40
node_modules/@babel/plugin-transform-runtime/lib/get-runtime-path/index.js
generated
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = _default;
|
||||
exports.resolveFSPath = resolveFSPath;
|
||||
var _path = require("path");
|
||||
var _module = require("module");
|
||||
function _default(moduleName, dirname, absoluteRuntime) {
|
||||
if (absoluteRuntime === false) return moduleName;
|
||||
return resolveAbsoluteRuntime(moduleName, _path.resolve(dirname, absoluteRuntime === true ? "." : absoluteRuntime));
|
||||
}
|
||||
function resolveAbsoluteRuntime(moduleName, dirname) {
|
||||
try {
|
||||
return _path.dirname((((v, w) => (v = v.split("."), w = w.split("."), +v[0] > +w[0] || v[0] == w[0] && +v[1] >= +w[1]))(process.versions.node, "8.9") ? require.resolve : (r, {
|
||||
paths: [b]
|
||||
}, M = require("module")) => {
|
||||
let f = M._findPath(r, M._nodeModulePaths(b).concat(b));
|
||||
if (f) return f;
|
||||
f = new Error(`Cannot resolve module '${r}'`);
|
||||
f.code = "MODULE_NOT_FOUND";
|
||||
throw f;
|
||||
})(`${moduleName}/package.json`, {
|
||||
paths: [dirname]
|
||||
})).replace(/\\/g, "/");
|
||||
} catch (err) {
|
||||
if (err.code !== "MODULE_NOT_FOUND") throw err;
|
||||
throw Object.assign(new Error(`Failed to resolve "${moduleName}" relative to "${dirname}"`), {
|
||||
code: "BABEL_RUNTIME_NOT_FOUND",
|
||||
runtime: moduleName,
|
||||
dirname
|
||||
});
|
||||
}
|
||||
}
|
||||
function resolveFSPath(path) {
|
||||
return require.resolve(path).replace(/\\/g, "/");
|
||||
}
|
||||
|
||||
//# sourceMappingURL=index.js.map
|
1
node_modules/@babel/plugin-transform-runtime/lib/get-runtime-path/index.js.map
generated
vendored
Normal file
1
node_modules/@babel/plugin-transform-runtime/lib/get-runtime-path/index.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"names":["_path","require","_module","_default","moduleName","dirname","absoluteRuntime","resolveAbsoluteRuntime","path","resolve","v","w","split","process","versions","node","r","paths","b","M","f","_findPath","_nodeModulePaths","concat","Error","code","replace","err","Object","assign","runtime","resolveFSPath"],"sources":["../../src/get-runtime-path/index.ts"],"sourcesContent":["import path from \"path\";\n\nimport { createRequire } from \"module\";\nconst require = createRequire(import.meta.url);\n\nexport default function (\n moduleName: string,\n dirname: string,\n absoluteRuntime: string | boolean,\n) {\n if (absoluteRuntime === false) return moduleName;\n\n return resolveAbsoluteRuntime(\n moduleName,\n path.resolve(dirname, absoluteRuntime === true ? \".\" : absoluteRuntime),\n );\n}\n\nfunction resolveAbsoluteRuntime(moduleName: string, dirname: string) {\n try {\n return path\n .dirname(\n require.resolve(`${moduleName}/package.json`, { paths: [dirname] }),\n )\n .replace(/\\\\/g, \"/\");\n } catch (err) {\n if (err.code !== \"MODULE_NOT_FOUND\") throw err;\n\n throw Object.assign(\n new Error(`Failed to resolve \"${moduleName}\" relative to \"${dirname}\"`),\n {\n code: \"BABEL_RUNTIME_NOT_FOUND\",\n runtime: moduleName,\n dirname,\n },\n );\n }\n}\n\nexport function resolveFSPath(path: string) {\n return require.resolve(path).replace(/\\\\/g, \"/\");\n}\n"],"mappings":";;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAGe,SAAAE,SACbC,UAAkB,EAClBC,OAAe,EACfC,eAAiC,EACjC;EACA,IAAIA,eAAe,KAAK,KAAK,EAAE,OAAOF,UAAU;EAEhD,OAAOG,sBAAsB,CAC3BH,UAAU,EACVI,KAAI,CAACC,OAAO,CAACJ,OAAO,EAAEC,eAAe,KAAK,IAAI,GAAG,GAAG,GAAGA,eAAe,CACxE,CAAC;AACH;AAEA,SAASC,sBAAsBA,CAACH,UAAkB,EAAEC,OAAe,EAAE;EACnE,IAAI;IACF,OAAOG,KAAI,CACRH,OAAO,CACN,GAAAK,CAAA,EAAAC,CAAA,MAAAD,CAAA,GAAAA,CAAA,CAAAE,KAAA,OAAAD,CAAA,GAAAA,CAAA,CAAAC,KAAA,QAAAF,CAAA,OAAAC,CAAA,OAAAD,CAAA,OAAAC,CAAA,QAAAD,CAAA,QAAAC,CAAA,MAAAE,OAAA,CAAAC,QAAA,CAAAC,IAAA,WAAAd,OAAA,CAAAQ,OAAA,IAAAO,CAAA;MAAAC,KAAA,GAAAC,CAAA;IAAA,GAAAC,CAAA,GAAAlB,OAAA;MAAA,IAAAmB,CAAA,GAAAD,CAAA,CAAAE,SAAA,CAAAL,CAAA,EAAAG,CAAA,CAAAG,gBAAA,CAAAJ,CAAA,EAAAK,MAAA,CAAAL,CAAA;MAAA,IAAAE,CAAA,SAAAA,CAAA;MAAAA,CAAA,OAAAI,KAAA,2BAAAR,CAAA;MAAAI,CAAA,CAAAK,IAAA;MAAA,MAAAL,CAAA;IAAA,GAAiB,GAAEhB,UAAW,eAAc,EAAE;MAAEa,KAAK,EAAE,CAACZ,OAAO;IAAE,CAAC,CACpE,CAAC,CACAqB,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;EACxB,CAAC,CAAC,OAAOC,GAAG,EAAE;IACZ,IAAIA,GAAG,CAACF,IAAI,KAAK,kBAAkB,EAAE,MAAME,GAAG;IAE9C,MAAMC,MAAM,CAACC,MAAM,CACjB,IAAIL,KAAK,CAAE,sBAAqBpB,UAAW,kBAAiBC,OAAQ,GAAE,CAAC,EACvE;MACEoB,IAAI,EAAE,yBAAyB;MAC/BK,OAAO,EAAE1B,UAAU;MACnBC;IACF,CACF,CAAC;EACH;AACF;AAEO,SAAS0B,aAAaA,CAACvB,IAAY,EAAE;EAC1C,OAAOP,OAAO,CAACQ,OAAO,CAACD,IAAI,CAAC,CAACkB,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC;AAClD"}
|
14
node_modules/@babel/plugin-transform-runtime/lib/helpers.js
generated
vendored
Normal file
14
node_modules/@babel/plugin-transform-runtime/lib/helpers.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.hasMinVersion = hasMinVersion;
|
||||
var _semver = require("semver");
|
||||
function hasMinVersion(minVersion, runtimeVersion) {
|
||||
if (!runtimeVersion) return true;
|
||||
if (_semver.valid(runtimeVersion)) runtimeVersion = `^${runtimeVersion}`;
|
||||
return !_semver.intersects(`<${minVersion}`, runtimeVersion) && !_semver.intersects(`>=8.0.0`, runtimeVersion);
|
||||
}
|
||||
|
||||
//# sourceMappingURL=helpers.js.map
|
1
node_modules/@babel/plugin-transform-runtime/lib/helpers.js.map
generated
vendored
Normal file
1
node_modules/@babel/plugin-transform-runtime/lib/helpers.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"names":["_semver","require","hasMinVersion","minVersion","runtimeVersion","semver","valid","intersects"],"sources":["../src/helpers.ts"],"sourcesContent":["import semver from \"semver\";\n\nexport function hasMinVersion(\n minVersion: string,\n runtimeVersion: string | void,\n) {\n // If the range is unavailable, we're running the script during Babel's\n // build process, and we want to assume that all versions are satisfied so\n // that the built output will include all definitions.\n if (!runtimeVersion) return true;\n\n // semver.intersects() has some surprising behavior with comparing ranges\n // with pre-release versions. We add '^' to ensure that we are always\n // comparing ranges with ranges, which sidesteps this logic.\n // For example:\n //\n // semver.intersects(`<7.0.1`, \"7.0.0-beta.0\") // false - surprising\n // semver.intersects(`<7.0.1`, \"^7.0.0-beta.0\") // true - expected\n //\n // This is because the first falls back to\n //\n // semver.satisfies(\"7.0.0-beta.0\", `<7.0.1`) // false - surprising\n //\n // and this fails because a prerelease version can only satisfy a range\n // if it is a prerelease within the same major/minor/patch range.\n //\n // Note: If this is found to have issues, please also revisit the logic in\n // babel-core's availableHelper() API.\n if (semver.valid(runtimeVersion)) runtimeVersion = `^${runtimeVersion}`;\n\n return (\n !semver.intersects(`<${minVersion}`, runtimeVersion) &&\n !semver.intersects(`>=8.0.0`, runtimeVersion)\n );\n}\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAEO,SAASC,aAAaA,CAC3BC,UAAkB,EAClBC,cAA6B,EAC7B;EAIA,IAAI,CAACA,cAAc,EAAE,OAAO,IAAI;EAmBhC,IAAIC,OAAM,CAACC,KAAK,CAACF,cAAc,CAAC,EAAEA,cAAc,GAAI,IAAGA,cAAe,EAAC;EAEvE,OACE,CAACC,OAAM,CAACE,UAAU,CAAE,IAAGJ,UAAW,EAAC,EAAEC,cAAc,CAAC,IACpD,CAACC,OAAM,CAACE,UAAU,CAAE,SAAQ,EAAEH,cAAc,CAAC;AAEjD"}
|
108
node_modules/@babel/plugin-transform-runtime/lib/index.js
generated
vendored
Normal file
108
node_modules/@babel/plugin-transform-runtime/lib/index.js
generated
vendored
Normal file
@ -0,0 +1,108 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var _helperPluginUtils = require("@babel/helper-plugin-utils");
|
||||
var _helperModuleImports = require("@babel/helper-module-imports");
|
||||
var _core = require("@babel/core");
|
||||
var _helpers = require("./helpers");
|
||||
var _getRuntimePath = require("./get-runtime-path");
|
||||
var _polyfills = require("./polyfills");
|
||||
function supportsStaticESM(caller) {
|
||||
return !!(caller != null && caller.supportsStaticESM);
|
||||
}
|
||||
var _default = (0, _helperPluginUtils.declare)((api, options, dirname) => {
|
||||
api.assertVersion(7);
|
||||
const {
|
||||
helpers: useRuntimeHelpers = true,
|
||||
useESModules = false,
|
||||
version: runtimeVersion = "7.0.0-beta.0",
|
||||
absoluteRuntime = false
|
||||
} = options;
|
||||
if (typeof useRuntimeHelpers !== "boolean") {
|
||||
throw new Error("The 'helpers' option must be undefined, or a boolean.");
|
||||
}
|
||||
if (typeof useESModules !== "boolean" && useESModules !== "auto") {
|
||||
throw new Error("The 'useESModules' option must be undefined, or a boolean, or 'auto'.");
|
||||
}
|
||||
if (typeof absoluteRuntime !== "boolean" && typeof absoluteRuntime !== "string") {
|
||||
throw new Error("The 'absoluteRuntime' option must be undefined, a boolean, or a string.");
|
||||
}
|
||||
if (typeof runtimeVersion !== "string") {
|
||||
throw new Error(`The 'version' option must be a version string.`);
|
||||
}
|
||||
{
|
||||
const DUAL_MODE_RUNTIME = "7.13.0";
|
||||
var supportsCJSDefault = (0, _helpers.hasMinVersion)(DUAL_MODE_RUNTIME, runtimeVersion);
|
||||
}
|
||||
function has(obj, key) {
|
||||
return Object.prototype.hasOwnProperty.call(obj, key);
|
||||
}
|
||||
if (has(options, "useBuiltIns")) {
|
||||
if (options["useBuiltIns"]) {
|
||||
throw new Error("The 'useBuiltIns' option has been removed. The @babel/runtime " + "module now uses builtins by default.");
|
||||
} else {
|
||||
throw new Error("The 'useBuiltIns' option has been removed. Use the 'corejs'" + "option to polyfill with `core-js` via @babel/runtime.");
|
||||
}
|
||||
}
|
||||
if (has(options, "polyfill")) {
|
||||
if (options["polyfill"] === false) {
|
||||
throw new Error("The 'polyfill' option has been removed. The @babel/runtime " + "module now skips polyfilling by default.");
|
||||
} else {
|
||||
throw new Error("The 'polyfill' option has been removed. Use the 'corejs'" + "option to polyfill with `core-js` via @babel/runtime.");
|
||||
}
|
||||
}
|
||||
if (has(options, "moduleName")) {
|
||||
throw new Error("The 'moduleName' option has been removed. @babel/transform-runtime " + "no longer supports arbitrary runtimes. If you were using this to " + "set an absolute path for Babel's standard runtimes, please use the " + "'absoluteRuntime' option.");
|
||||
}
|
||||
const esModules = useESModules === "auto" ? api.caller(supportsStaticESM) : useESModules;
|
||||
const HEADER_HELPERS = ["interopRequireWildcard", "interopRequireDefault"];
|
||||
return {
|
||||
name: "transform-runtime",
|
||||
inherits: (0, _polyfills.createBasePolyfillsPlugin)(options, runtimeVersion, absoluteRuntime),
|
||||
pre(file) {
|
||||
if (!useRuntimeHelpers) return;
|
||||
let modulePath;
|
||||
file.set("helperGenerator", name => {
|
||||
var _modulePath, _file$get;
|
||||
(_modulePath = modulePath) != null ? _modulePath : modulePath = (0, _getRuntimePath.default)((_file$get = file.get("runtimeHelpersModuleName")) != null ? _file$get : "@babel/runtime", dirname, absoluteRuntime);
|
||||
{
|
||||
if (!(file.availableHelper != null && file.availableHelper(name, runtimeVersion))) {
|
||||
if (name === "regeneratorRuntime") {
|
||||
return _core.types.arrowFunctionExpression([], _core.types.identifier("regeneratorRuntime"));
|
||||
}
|
||||
return;
|
||||
}
|
||||
}
|
||||
const isInteropHelper = HEADER_HELPERS.indexOf(name) !== -1;
|
||||
const blockHoist = isInteropHelper && !(0, _helperModuleImports.isModule)(file.path) ? 4 : undefined;
|
||||
const helpersDir = esModules && file.path.node.sourceType === "module" ? "helpers/esm" : "helpers";
|
||||
let helperPath = `${modulePath}/${helpersDir}/${name}`;
|
||||
if (absoluteRuntime) helperPath = (0, _getRuntimePath.resolveFSPath)(helperPath);
|
||||
return addDefaultImport(helperPath, name, blockHoist, true);
|
||||
});
|
||||
const cache = new Map();
|
||||
function addDefaultImport(source, nameHint, blockHoist, isHelper = false) {
|
||||
const cacheKey = (0, _helperModuleImports.isModule)(file.path);
|
||||
const key = `${source}:${nameHint}:${cacheKey || ""}`;
|
||||
let cached = cache.get(key);
|
||||
if (cached) {
|
||||
cached = _core.types.cloneNode(cached);
|
||||
} else {
|
||||
cached = (0, _helperModuleImports.addDefault)(file.path, source, {
|
||||
importedInterop: isHelper && supportsCJSDefault ? "compiled" : "uncompiled",
|
||||
nameHint,
|
||||
blockHoist
|
||||
});
|
||||
cache.set(key, cached);
|
||||
}
|
||||
return cached;
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
exports.default = _default;
|
||||
|
||||
//# sourceMappingURL=index.js.map
|
1
node_modules/@babel/plugin-transform-runtime/lib/index.js.map
generated
vendored
Normal file
1
node_modules/@babel/plugin-transform-runtime/lib/index.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
64
node_modules/@babel/plugin-transform-runtime/lib/polyfills.js
generated
vendored
Normal file
64
node_modules/@babel/plugin-transform-runtime/lib/polyfills.js
generated
vendored
Normal file
@ -0,0 +1,64 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.createBasePolyfillsPlugin = createBasePolyfillsPlugin;
|
||||
var _babelPluginPolyfillCorejs = require("babel-plugin-polyfill-corejs2");
|
||||
var _babelPluginPolyfillCorejs2 = require("babel-plugin-polyfill-corejs3");
|
||||
var _babelPluginPolyfillRegenerator = require("babel-plugin-polyfill-regenerator");
|
||||
const pluginCorejs2 = _babelPluginPolyfillCorejs.default || _babelPluginPolyfillCorejs;
|
||||
const pluginCorejs3 = _babelPluginPolyfillCorejs2.default || _babelPluginPolyfillCorejs2;
|
||||
const pluginRegenerator = _babelPluginPolyfillRegenerator.default || _babelPluginPolyfillRegenerator;
|
||||
const pluginsCompat = "#__secret_key__@babel/runtime__compatibility";
|
||||
function createCorejsPlugin(plugin, options, regeneratorPlugin) {
|
||||
return (api, _, filename) => {
|
||||
return Object.assign({}, plugin(api, options, filename), {
|
||||
inherits: regeneratorPlugin
|
||||
});
|
||||
};
|
||||
}
|
||||
function createRegeneratorPlugin(options, useRuntimeRegenerator) {
|
||||
if (!useRuntimeRegenerator) return undefined;
|
||||
return (api, _, filename) => {
|
||||
return pluginRegenerator(api, options, filename);
|
||||
};
|
||||
}
|
||||
function createBasePolyfillsPlugin({
|
||||
corejs,
|
||||
regenerator: useRuntimeRegenerator = true
|
||||
}, runtimeVersion, absoluteImports) {
|
||||
let proposals = false;
|
||||
let rawVersion;
|
||||
if (typeof corejs === "object" && corejs !== null) {
|
||||
rawVersion = corejs.version;
|
||||
proposals = Boolean(corejs.proposals);
|
||||
} else {
|
||||
rawVersion = corejs;
|
||||
}
|
||||
const corejsVersion = rawVersion ? Number(rawVersion) : false;
|
||||
if (![false, 2, 3].includes(corejsVersion)) {
|
||||
throw new Error(`The \`core-js\` version must be false, 2 or 3, but got ${JSON.stringify(rawVersion)}.`);
|
||||
}
|
||||
if (proposals && (!corejsVersion || corejsVersion < 3)) {
|
||||
throw new Error("The 'proposals' option is only supported when using 'corejs: 3'");
|
||||
}
|
||||
if (typeof useRuntimeRegenerator !== "boolean") {
|
||||
throw new Error("The 'regenerator' option must be undefined, or a boolean.");
|
||||
}
|
||||
const polyfillOpts = {
|
||||
method: "usage-pure",
|
||||
absoluteImports,
|
||||
[pluginsCompat]: {
|
||||
useBabelRuntime: true,
|
||||
runtimeVersion,
|
||||
ext: ""
|
||||
}
|
||||
};
|
||||
return corejsVersion === 2 ? createCorejsPlugin(pluginCorejs2, polyfillOpts, createRegeneratorPlugin(polyfillOpts, useRuntimeRegenerator)) : corejsVersion === 3 ? createCorejsPlugin(pluginCorejs3, Object.assign({
|
||||
version: 3,
|
||||
proposals
|
||||
}, polyfillOpts), createRegeneratorPlugin(polyfillOpts, useRuntimeRegenerator)) : createRegeneratorPlugin(polyfillOpts, useRuntimeRegenerator);
|
||||
}
|
||||
|
||||
//# sourceMappingURL=polyfills.js.map
|
1
node_modules/@babel/plugin-transform-runtime/lib/polyfills.js.map
generated
vendored
Normal file
1
node_modules/@babel/plugin-transform-runtime/lib/polyfills.js.map
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
15
node_modules/@babel/plugin-transform-runtime/node_modules/.bin/semver
generated
vendored
Normal file
15
node_modules/@babel/plugin-transform-runtime/node_modules/.bin/semver
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
#!/bin/sh
|
||||
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
||||
|
||||
case `uname` in
|
||||
*CYGWIN*) basedir=`cygpath -w "$basedir"`;;
|
||||
esac
|
||||
|
||||
if [ -x "$basedir/node" ]; then
|
||||
"$basedir/node" "$basedir/../../../../semver/bin/semver.js" "$@"
|
||||
ret=$?
|
||||
else
|
||||
node "$basedir/../../../../semver/bin/semver.js" "$@"
|
||||
ret=$?
|
||||
fi
|
||||
exit $ret
|
7
node_modules/@babel/plugin-transform-runtime/node_modules/.bin/semver.cmd
generated
vendored
Normal file
7
node_modules/@babel/plugin-transform-runtime/node_modules/.bin/semver.cmd
generated
vendored
Normal file
@ -0,0 +1,7 @@
|
||||
@IF EXIST "%~dp0\node.exe" (
|
||||
"%~dp0\node.exe" "%~dp0\..\..\..\..\semver\bin\semver.js" %*
|
||||
) ELSE (
|
||||
@SETLOCAL
|
||||
@SET PATHEXT=%PATHEXT:;.JS;=;%
|
||||
node "%~dp0\..\..\..\..\semver\bin\semver.js" %*
|
||||
)
|
80
node_modules/@babel/plugin-transform-runtime/package.json
generated
vendored
Normal file
80
node_modules/@babel/plugin-transform-runtime/package.json
generated
vendored
Normal file
@ -0,0 +1,80 @@
|
||||
{
|
||||
"_from": "@babel/plugin-transform-runtime@^7.12.15",
|
||||
"_id": "@babel/plugin-transform-runtime@7.22.10",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-RchI7HePu1eu0CYNKHHHQdfenZcM4nz8rew5B1VWqeRKdcwW5aQ5HeG9eTUbWiAS1UrmHVLmoxTWHt3iLD/NhA==",
|
||||
"_location": "/@babel/plugin-transform-runtime",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "@babel/plugin-transform-runtime@^7.12.15",
|
||||
"name": "@babel/plugin-transform-runtime",
|
||||
"escapedName": "@babel%2fplugin-transform-runtime",
|
||||
"scope": "@babel",
|
||||
"rawSpec": "^7.12.15",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^7.12.15"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@vue/babel-preset-app"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.22.10.tgz",
|
||||
"_shasum": "89eda6daf1d3af6f36fb368766553054c8d7cd46",
|
||||
"_spec": "@babel/plugin-transform-runtime@^7.12.15",
|
||||
"_where": "C:\\Users\\zhouxueli\\Desktop\\scheduling-app\\node_modules\\@vue\\babel-preset-app",
|
||||
"author": {
|
||||
"name": "The Babel Team",
|
||||
"url": "https://babel.dev/team"
|
||||
},
|
||||
"browser": {
|
||||
"./lib/get-runtime-path/index.js": "./lib/get-runtime-path/browser.js",
|
||||
"./src/get-runtime-path/index.ts": "./src/get-runtime-path/browser.ts"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/babel/babel/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"@babel/helper-module-imports": "^7.22.5",
|
||||
"@babel/helper-plugin-utils": "^7.22.5",
|
||||
"babel-plugin-polyfill-corejs2": "^0.4.5",
|
||||
"babel-plugin-polyfill-corejs3": "^0.8.3",
|
||||
"babel-plugin-polyfill-regenerator": "^0.5.2",
|
||||
"semver": "^6.3.1"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Externalise references to helpers and builtins, automatically polyfilling your code without polluting globals",
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.22.10",
|
||||
"@babel/helper-plugin-test-runner": "^7.22.5",
|
||||
"@babel/helpers": "^7.22.10",
|
||||
"@babel/preset-env": "^7.22.10",
|
||||
"@babel/runtime": "^7.22.10",
|
||||
"@babel/runtime-corejs3": "^7.22.10",
|
||||
"make-dir": "^2.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.9.0"
|
||||
},
|
||||
"homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-runtime",
|
||||
"keywords": [
|
||||
"babel-plugin"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "./lib/index.js",
|
||||
"name": "@babel/plugin-transform-runtime",
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^7.0.0-0"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/babel/babel.git",
|
||||
"directory": "packages/babel-plugin-transform-runtime"
|
||||
},
|
||||
"type": "commonjs",
|
||||
"version": "7.22.10"
|
||||
}
|
15
node_modules/@babel/plugin-transform-runtime/src/get-runtime-path/browser.ts
generated
vendored
Normal file
15
node_modules/@babel/plugin-transform-runtime/src/get-runtime-path/browser.ts
generated
vendored
Normal file
@ -0,0 +1,15 @@
|
||||
export default function (
|
||||
moduleName: string,
|
||||
dirname: string,
|
||||
absoluteRuntime: string | boolean,
|
||||
) {
|
||||
if (absoluteRuntime === false) return moduleName;
|
||||
|
||||
resolveFSPath();
|
||||
}
|
||||
|
||||
export function resolveFSPath() {
|
||||
throw new Error(
|
||||
"The 'absoluteRuntime' option is not supported when using @babel/standalone.",
|
||||
);
|
||||
}
|
42
node_modules/@babel/plugin-transform-runtime/src/get-runtime-path/index.ts
generated
vendored
Normal file
42
node_modules/@babel/plugin-transform-runtime/src/get-runtime-path/index.ts
generated
vendored
Normal file
@ -0,0 +1,42 @@
|
||||
import path from "path";
|
||||
|
||||
import { createRequire } from "module";
|
||||
const require = createRequire(import.meta.url);
|
||||
|
||||
export default function (
|
||||
moduleName: string,
|
||||
dirname: string,
|
||||
absoluteRuntime: string | boolean,
|
||||
) {
|
||||
if (absoluteRuntime === false) return moduleName;
|
||||
|
||||
return resolveAbsoluteRuntime(
|
||||
moduleName,
|
||||
path.resolve(dirname, absoluteRuntime === true ? "." : absoluteRuntime),
|
||||
);
|
||||
}
|
||||
|
||||
function resolveAbsoluteRuntime(moduleName: string, dirname: string) {
|
||||
try {
|
||||
return path
|
||||
.dirname(
|
||||
require.resolve(`${moduleName}/package.json`, { paths: [dirname] }),
|
||||
)
|
||||
.replace(/\\/g, "/");
|
||||
} catch (err) {
|
||||
if (err.code !== "MODULE_NOT_FOUND") throw err;
|
||||
|
||||
throw Object.assign(
|
||||
new Error(`Failed to resolve "${moduleName}" relative to "${dirname}"`),
|
||||
{
|
||||
code: "BABEL_RUNTIME_NOT_FOUND",
|
||||
runtime: moduleName,
|
||||
dirname,
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export function resolveFSPath(path: string) {
|
||||
return require.resolve(path).replace(/\\/g, "/");
|
||||
}
|
Reference in New Issue
Block a user