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:
24
node_modules/webpack/lib/container/RemoteModule.js
generated
vendored
24
node_modules/webpack/lib/container/RemoteModule.js
generated
vendored
@@ -18,13 +18,17 @@ const RemoteToExternalDependency = require("./RemoteToExternalDependency");
|
||||
/** @typedef {import("../Compilation")} Compilation */
|
||||
/** @typedef {import("../Module").BuildCallback} BuildCallback */
|
||||
/** @typedef {import("../Module").CodeGenerationContext} CodeGenerationContext */
|
||||
/** @typedef {import("../Module").CodeGenerationResultData} CodeGenerationResultData */
|
||||
/** @typedef {import("../Module").CodeGenerationResult} CodeGenerationResult */
|
||||
/** @typedef {import("../Module").LibIdentOptions} LibIdentOptions */
|
||||
/** @typedef {import("../Module").LibIdent} LibIdent */
|
||||
/** @typedef {import("../Module").NameForCondition} NameForCondition */
|
||||
/** @typedef {import("../Module").NeedBuildCallback} NeedBuildCallback */
|
||||
/** @typedef {import("../Module").NeedBuildContext} NeedBuildContext */
|
||||
/** @typedef {import("../Module").Sources} Sources */
|
||||
/** @typedef {import("../Module").SourceTypes} SourceTypes */
|
||||
/** @typedef {import("../ModuleGraph")} ModuleGraph */
|
||||
/** @typedef {import("../Module").ExportsType} ExportsType */
|
||||
/** @typedef {import("../RequestShortener")} RequestShortener */
|
||||
/** @typedef {import("../ResolverFactory").ResolverWithOptions} ResolverWithOptions */
|
||||
/** @typedef {import("../serialization/ObjectMiddleware").ObjectDeserializerContext} ObjectDeserializerContext */
|
||||
@@ -44,10 +48,15 @@ class RemoteModule extends Module {
|
||||
*/
|
||||
constructor(request, externalRequests, internalRequest, shareScope) {
|
||||
super(WEBPACK_MODULE_TYPE_REMOTE);
|
||||
/** @type {string} */
|
||||
this.request = request;
|
||||
/** @type {ExternalRequests} */
|
||||
this.externalRequests = externalRequests;
|
||||
/** @type {string} */
|
||||
this.internalRequest = internalRequest;
|
||||
/** @type {string} */
|
||||
this.shareScope = shareScope;
|
||||
/** @type {string} */
|
||||
this._identifier = `remote (${shareScope}) ${this.externalRequests.join(
|
||||
" "
|
||||
)} ${this.internalRequest}`;
|
||||
@@ -128,6 +137,19 @@ class RemoteModule extends Module {
|
||||
return REMOTE_AND_SHARE_INIT_TYPES;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {ModuleGraph} moduleGraph the module graph
|
||||
* @param {boolean | undefined} strict the importing module is strict
|
||||
* @returns {ExportsType} export type
|
||||
* "namespace": Exports is already a namespace object. namespace = exports.
|
||||
* "dynamic": Check at runtime if __esModule is set. When set: namespace = { ...exports, default: exports }. When not set: namespace = { default: exports }.
|
||||
* "default-only": Provide a namespace object with only default export. namespace = { default: exports }
|
||||
* "default-with-named": Provide a namespace object with named and default export. namespace = { ...exports, default: exports }
|
||||
*/
|
||||
getExportsType(moduleGraph, strict) {
|
||||
return "dynamic";
|
||||
}
|
||||
|
||||
/**
|
||||
* @returns {NameForCondition | null} absolute path which should be used for condition matching (usually the resource path)
|
||||
*/
|
||||
@@ -142,8 +164,10 @@ class RemoteModule extends Module {
|
||||
codeGeneration({ moduleGraph, chunkGraph }) {
|
||||
const module = moduleGraph.getModule(this.dependencies[0]);
|
||||
const id = module && chunkGraph.getModuleId(module);
|
||||
/** @type {Sources} */
|
||||
const sources = new Map();
|
||||
sources.set("remote", new RawSource(""));
|
||||
/** @type {CodeGenerationResultData} */
|
||||
const data = new Map();
|
||||
data.set("share-init", [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user