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:
10
node_modules/webpack/lib/node/CommonJsChunkLoadingPlugin.js
generated
vendored
10
node_modules/webpack/lib/node/CommonJsChunkLoadingPlugin.js
generated
vendored
@@ -24,7 +24,8 @@ class CommonJsChunkLoadingPlugin {
|
||||
* @param {CommonJsChunkLoadingPluginOptions=} options options
|
||||
*/
|
||||
constructor(options = {}) {
|
||||
this._asyncChunkLoading = options.asyncChunkLoading;
|
||||
/** @type {CommonJsChunkLoadingPluginOptions} */
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -33,15 +34,15 @@ class CommonJsChunkLoadingPlugin {
|
||||
* @returns {void}
|
||||
*/
|
||||
apply(compiler) {
|
||||
const ChunkLoadingRuntimeModule = this._asyncChunkLoading
|
||||
const ChunkLoadingRuntimeModule = this.options.asyncChunkLoading
|
||||
? require("./ReadFileChunkLoadingRuntimeModule")
|
||||
: require("./RequireChunkLoadingRuntimeModule");
|
||||
const chunkLoadingValue = this._asyncChunkLoading
|
||||
const chunkLoadingValue = this.options.asyncChunkLoading
|
||||
? "async-node"
|
||||
: "require";
|
||||
new StartupChunkDependenciesPlugin({
|
||||
chunkLoading: chunkLoadingValue,
|
||||
asyncChunkLoading: this._asyncChunkLoading
|
||||
asyncChunkLoading: this.options.asyncChunkLoading
|
||||
}).apply(compiler);
|
||||
compiler.hooks.thisCompilation.tap(PLUGIN_NAME, (compilation) => {
|
||||
const globalChunkLoading = compilation.outputOptions.chunkLoading;
|
||||
@@ -57,6 +58,7 @@ class CommonJsChunkLoadingPlugin {
|
||||
: globalChunkLoading;
|
||||
return chunkLoading === chunkLoadingValue;
|
||||
};
|
||||
/** @type {WeakSet<Chunk>} */
|
||||
const onceForChunkSet = new WeakSet();
|
||||
/**
|
||||
* @param {Chunk} chunk chunk
|
||||
|
||||
Reference in New Issue
Block a user