Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
22
my-app/node_modules/@babel/plugin-transform-modules-umd/LICENSE
generated
vendored
Executable file
22
my-app/node_modules/@babel/plugin-transform-modules-umd/LICENSE
generated
vendored
Executable 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
my-app/node_modules/@babel/plugin-transform-modules-umd/README.md
generated
vendored
Executable file
19
my-app/node_modules/@babel/plugin-transform-modules-umd/README.md
generated
vendored
Executable file
|
@ -0,0 +1,19 @@
|
|||
# @babel/plugin-transform-modules-umd
|
||||
|
||||
> This plugin transforms ES2015 modules to UMD
|
||||
|
||||
See our website [@babel/plugin-transform-modules-umd](https://babeljs.io/docs/babel-plugin-transform-modules-umd) for more information.
|
||||
|
||||
## Install
|
||||
|
||||
Using npm:
|
||||
|
||||
```sh
|
||||
npm install --save-dev @babel/plugin-transform-modules-umd
|
||||
```
|
||||
|
||||
or using yarn:
|
||||
|
||||
```sh
|
||||
yarn add @babel/plugin-transform-modules-umd --dev
|
||||
```
|
156
my-app/node_modules/@babel/plugin-transform-modules-umd/lib/index.js
generated
vendored
Executable file
156
my-app/node_modules/@babel/plugin-transform-modules-umd/lib/index.js
generated
vendored
Executable file
|
@ -0,0 +1,156 @@
|
|||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.default = void 0;
|
||||
var _helperPluginUtils = require("@babel/helper-plugin-utils");
|
||||
var _path = require("path");
|
||||
var _helperModuleTransforms = require("@babel/helper-module-transforms");
|
||||
var _core = require("@babel/core");
|
||||
const buildPrerequisiteAssignment = (0, _core.template)(`
|
||||
GLOBAL_REFERENCE = GLOBAL_REFERENCE || {}
|
||||
`);
|
||||
const buildWrapper = (0, _core.template)(`
|
||||
(function (global, factory) {
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define(MODULE_NAME, AMD_ARGUMENTS, factory);
|
||||
} else if (typeof exports !== "undefined") {
|
||||
factory(COMMONJS_ARGUMENTS);
|
||||
} else {
|
||||
var mod = { exports: {} };
|
||||
factory(BROWSER_ARGUMENTS);
|
||||
|
||||
GLOBAL_TO_ASSIGN;
|
||||
}
|
||||
})(
|
||||
typeof globalThis !== "undefined" ? globalThis
|
||||
: typeof self !== "undefined" ? self
|
||||
: this,
|
||||
function(IMPORT_NAMES) {
|
||||
})
|
||||
`);
|
||||
var _default = exports.default = (0, _helperPluginUtils.declare)((api, options) => {
|
||||
var _api$assumption, _api$assumption2;
|
||||
api.assertVersion(7);
|
||||
const {
|
||||
globals,
|
||||
exactGlobals,
|
||||
allowTopLevelThis,
|
||||
strict,
|
||||
strictMode,
|
||||
noInterop,
|
||||
importInterop
|
||||
} = options;
|
||||
const constantReexports = (_api$assumption = api.assumption("constantReexports")) != null ? _api$assumption : options.loose;
|
||||
const enumerableModuleMeta = (_api$assumption2 = api.assumption("enumerableModuleMeta")) != null ? _api$assumption2 : options.loose;
|
||||
function buildBrowserInit(browserGlobals, exactGlobals, filename, moduleName) {
|
||||
const moduleNameOrBasename = moduleName ? moduleName.value : (0, _path.basename)(filename, (0, _path.extname)(filename));
|
||||
let globalToAssign = _core.types.memberExpression(_core.types.identifier("global"), _core.types.identifier(_core.types.toIdentifier(moduleNameOrBasename)));
|
||||
let initAssignments = [];
|
||||
if (exactGlobals) {
|
||||
const globalName = browserGlobals[moduleNameOrBasename];
|
||||
if (globalName) {
|
||||
initAssignments = [];
|
||||
const members = globalName.split(".");
|
||||
globalToAssign = members.slice(1).reduce((accum, curr) => {
|
||||
initAssignments.push(buildPrerequisiteAssignment({
|
||||
GLOBAL_REFERENCE: _core.types.cloneNode(accum)
|
||||
}));
|
||||
return _core.types.memberExpression(accum, _core.types.identifier(curr));
|
||||
}, _core.types.memberExpression(_core.types.identifier("global"), _core.types.identifier(members[0])));
|
||||
}
|
||||
}
|
||||
initAssignments.push(_core.types.expressionStatement(_core.types.assignmentExpression("=", globalToAssign, _core.types.memberExpression(_core.types.identifier("mod"), _core.types.identifier("exports")))));
|
||||
return initAssignments;
|
||||
}
|
||||
function buildBrowserArg(browserGlobals, exactGlobals, source) {
|
||||
let memberExpression;
|
||||
if (exactGlobals) {
|
||||
const globalRef = browserGlobals[source];
|
||||
if (globalRef) {
|
||||
memberExpression = globalRef.split(".").reduce((accum, curr) => _core.types.memberExpression(accum, _core.types.identifier(curr)), _core.types.identifier("global"));
|
||||
} else {
|
||||
memberExpression = _core.types.memberExpression(_core.types.identifier("global"), _core.types.identifier(_core.types.toIdentifier(source)));
|
||||
}
|
||||
} else {
|
||||
const requireName = (0, _path.basename)(source, (0, _path.extname)(source));
|
||||
const globalName = browserGlobals[requireName] || requireName;
|
||||
memberExpression = _core.types.memberExpression(_core.types.identifier("global"), _core.types.identifier(_core.types.toIdentifier(globalName)));
|
||||
}
|
||||
return memberExpression;
|
||||
}
|
||||
return {
|
||||
name: "transform-modules-umd",
|
||||
visitor: {
|
||||
Program: {
|
||||
exit(path) {
|
||||
if (!(0, _helperModuleTransforms.isModule)(path)) return;
|
||||
const browserGlobals = globals || {};
|
||||
const moduleName = (0, _helperModuleTransforms.getModuleName)(this.file.opts, options);
|
||||
let moduleNameLiteral;
|
||||
if (moduleName) moduleNameLiteral = _core.types.stringLiteral(moduleName);
|
||||
const {
|
||||
meta,
|
||||
headers
|
||||
} = (0, _helperModuleTransforms.rewriteModuleStatementsAndPrepareHeader)(path, {
|
||||
constantReexports,
|
||||
enumerableModuleMeta,
|
||||
strict,
|
||||
strictMode,
|
||||
allowTopLevelThis,
|
||||
noInterop,
|
||||
importInterop,
|
||||
filename: this.file.opts.filename
|
||||
});
|
||||
const amdArgs = [];
|
||||
const commonjsArgs = [];
|
||||
const browserArgs = [];
|
||||
const importNames = [];
|
||||
if ((0, _helperModuleTransforms.hasExports)(meta)) {
|
||||
amdArgs.push(_core.types.stringLiteral("exports"));
|
||||
commonjsArgs.push(_core.types.identifier("exports"));
|
||||
browserArgs.push(_core.types.memberExpression(_core.types.identifier("mod"), _core.types.identifier("exports")));
|
||||
importNames.push(_core.types.identifier(meta.exportName));
|
||||
}
|
||||
for (const [source, metadata] of meta.source) {
|
||||
amdArgs.push(_core.types.stringLiteral(source));
|
||||
commonjsArgs.push(_core.types.callExpression(_core.types.identifier("require"), [_core.types.stringLiteral(source)]));
|
||||
browserArgs.push(buildBrowserArg(browserGlobals, exactGlobals, source));
|
||||
importNames.push(_core.types.identifier(metadata.name));
|
||||
if (!(0, _helperModuleTransforms.isSideEffectImport)(metadata)) {
|
||||
const interop = (0, _helperModuleTransforms.wrapInterop)(path, _core.types.identifier(metadata.name), metadata.interop);
|
||||
if (interop) {
|
||||
const header = _core.types.expressionStatement(_core.types.assignmentExpression("=", _core.types.identifier(metadata.name), interop));
|
||||
header.loc = meta.loc;
|
||||
headers.push(header);
|
||||
}
|
||||
}
|
||||
headers.push(...(0, _helperModuleTransforms.buildNamespaceInitStatements)(meta, metadata, constantReexports));
|
||||
}
|
||||
(0, _helperModuleTransforms.ensureStatementsHoisted)(headers);
|
||||
path.unshiftContainer("body", headers);
|
||||
const {
|
||||
body,
|
||||
directives
|
||||
} = path.node;
|
||||
path.node.directives = [];
|
||||
path.node.body = [];
|
||||
const umdWrapper = path.pushContainer("body", [buildWrapper({
|
||||
MODULE_NAME: moduleNameLiteral,
|
||||
AMD_ARGUMENTS: _core.types.arrayExpression(amdArgs),
|
||||
COMMONJS_ARGUMENTS: commonjsArgs,
|
||||
BROWSER_ARGUMENTS: browserArgs,
|
||||
IMPORT_NAMES: importNames,
|
||||
GLOBAL_TO_ASSIGN: buildBrowserInit(browserGlobals, exactGlobals, this.filename || "unknown", moduleNameLiteral)
|
||||
})])[0];
|
||||
const umdFactory = umdWrapper.get("expression.arguments")[1].get("body");
|
||||
umdFactory.pushContainer("directives", directives);
|
||||
umdFactory.pushContainer("body", body);
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
//# sourceMappingURL=index.js.map
|
1
my-app/node_modules/@babel/plugin-transform-modules-umd/lib/index.js.map
generated
vendored
Executable file
1
my-app/node_modules/@babel/plugin-transform-modules-umd/lib/index.js.map
generated
vendored
Executable file
File diff suppressed because one or more lines are too long
36
my-app/node_modules/@babel/plugin-transform-modules-umd/package.json
generated
vendored
Executable file
36
my-app/node_modules/@babel/plugin-transform-modules-umd/package.json
generated
vendored
Executable file
|
@ -0,0 +1,36 @@
|
|||
{
|
||||
"name": "@babel/plugin-transform-modules-umd",
|
||||
"version": "7.23.3",
|
||||
"description": "This plugin transforms ES2015 modules to UMD",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/babel/babel.git",
|
||||
"directory": "packages/babel-plugin-transform-modules-umd"
|
||||
},
|
||||
"homepage": "https://babel.dev/docs/en/next/babel-plugin-transform-modules-umd",
|
||||
"license": "MIT",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
},
|
||||
"main": "./lib/index.js",
|
||||
"dependencies": {
|
||||
"@babel/helper-module-transforms": "^7.23.3",
|
||||
"@babel/helper-plugin-utils": "^7.22.5"
|
||||
},
|
||||
"keywords": [
|
||||
"babel-plugin"
|
||||
],
|
||||
"peerDependencies": {
|
||||
"@babel/core": "^7.0.0-0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.23.3",
|
||||
"@babel/helper-plugin-test-runner": "^7.22.5",
|
||||
"@babel/plugin-external-helpers": "^7.23.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.9.0"
|
||||
},
|
||||
"author": "The Babel Team (https://babel.dev/team)",
|
||||
"type": "commonjs"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue