Update npm packages (73 packages including @jqhtml 2.3.36)
Update npm registry domain from privatenpm.hanson.xyz to npm.internal.hanson.xyz 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
16
node_modules/webpack/lib/ExternalModule.js
generated
vendored
16
node_modules/webpack/lib/ExternalModule.js
generated
vendored
@@ -45,12 +45,15 @@ const { register } = require("./util/serialization");
|
||||
/** @typedef {import("./Module").BuildInfo} BuildInfo */
|
||||
/** @typedef {import("./Module").CodeGenerationContext} CodeGenerationContext */
|
||||
/** @typedef {import("./Module").CodeGenerationResult} CodeGenerationResult */
|
||||
/** @typedef {import("./Module").CodeGenerationResultData} CodeGenerationResultData */
|
||||
/** @typedef {import("./Module").ConcatenationBailoutReasonContext} ConcatenationBailoutReasonContext */
|
||||
/** @typedef {import("./Module").LibIdentOptions} LibIdentOptions */
|
||||
/** @typedef {import("./Module").LibIdent} LibIdent */
|
||||
/** @typedef {import("./Module").NeedBuildCallback} NeedBuildCallback */
|
||||
/** @typedef {import("./Module").NeedBuildContext} NeedBuildContext */
|
||||
/** @typedef {import("./Module").RuntimeRequirements} RuntimeRequirements */
|
||||
/** @typedef {import("./Module").ReadOnlyRuntimeRequirements} ReadOnlyRuntimeRequirements */
|
||||
/** @typedef {import("./Module").Sources} Sources */
|
||||
/** @typedef {import("./ModuleGraph")} ModuleGraph */
|
||||
/** @typedef {import("./NormalModuleFactory")} NormalModuleFactory */
|
||||
/** @typedef {import("./RequestShortener")} RequestShortener */
|
||||
@@ -82,11 +85,15 @@ const { register } = require("./util/serialization");
|
||||
|
||||
/** @typedef {true | [string, string][]} Imported */
|
||||
|
||||
/** @type {RuntimeRequirements} */
|
||||
const RUNTIME_REQUIREMENTS = new Set([RuntimeGlobals.module]);
|
||||
/** @type {RuntimeRequirements} */
|
||||
const RUNTIME_REQUIREMENTS_FOR_SCRIPT = new Set([RuntimeGlobals.loadScript]);
|
||||
/** @type {RuntimeRequirements} */
|
||||
const RUNTIME_REQUIREMENTS_FOR_MODULE = new Set([
|
||||
RuntimeGlobals.definePropertyGetters
|
||||
]);
|
||||
/** @type {RuntimeRequirements} */
|
||||
const EMPTY_RUNTIME_REQUIREMENTS = new Set();
|
||||
|
||||
/**
|
||||
@@ -400,6 +407,7 @@ const generateModuleRemapping = (
|
||||
runtimeTemplate
|
||||
) => {
|
||||
if (exportsInfo.otherExportsInfo.getUsed(runtime) === UsageState.Unused) {
|
||||
/** @type {string[]} */
|
||||
const properties = [];
|
||||
for (const exportInfo of exportsInfo.orderedExports) {
|
||||
const used = exportInfo.getUsedName(exportInfo.name, runtime);
|
||||
@@ -488,6 +496,7 @@ const getSourceForModuleExternal = (
|
||||
let expression = baseAccess;
|
||||
|
||||
const useNamespace = imported === true;
|
||||
/** @type {undefined | string} */
|
||||
let moduleRemapping;
|
||||
if (useNamespace) {
|
||||
moduleRemapping = generateModuleRemapping(
|
||||
@@ -978,22 +987,27 @@ class ExternalModule extends Module {
|
||||
const { request, externalType } = this._getRequestAndExternalType();
|
||||
switch (externalType) {
|
||||
case "asset": {
|
||||
/** @type {Sources} */
|
||||
const sources = new Map();
|
||||
sources.set(
|
||||
JAVASCRIPT_TYPE,
|
||||
new RawSource(`module.exports = ${JSON.stringify(request)};`)
|
||||
);
|
||||
/** @type {CodeGenerationResultData} */
|
||||
const data = new Map();
|
||||
data.set("url", { javascript: request });
|
||||
return { sources, runtimeRequirements: RUNTIME_REQUIREMENTS, data };
|
||||
}
|
||||
case "css-url": {
|
||||
/** @type {Sources} */
|
||||
const sources = new Map();
|
||||
/** @type {CodeGenerationResultData} */
|
||||
const data = new Map();
|
||||
data.set("url", { "css-url": request });
|
||||
return { sources, runtimeRequirements: RUNTIME_REQUIREMENTS, data };
|
||||
}
|
||||
case "css-import": {
|
||||
/** @type {Sources} */
|
||||
const sources = new Map();
|
||||
const dependencyMeta = /** @type {CssImportDependencyMeta} */ (
|
||||
this.dependencyMeta
|
||||
@@ -1056,12 +1070,14 @@ class ExternalModule extends Module {
|
||||
sourceString = `${sourceData.init}\n${sourceString}`;
|
||||
}
|
||||
|
||||
/** @type {undefined | CodeGenerationResultData} */
|
||||
let data;
|
||||
if (sourceData.chunkInitFragments) {
|
||||
data = new Map();
|
||||
data.set("chunkInitFragments", sourceData.chunkInitFragments);
|
||||
}
|
||||
|
||||
/** @type {Sources} */
|
||||
const sources = new Map();
|
||||
if (this.useSourceMap || this.useSimpleSourceMap) {
|
||||
sources.set(
|
||||
|
||||
Reference in New Issue
Block a user