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:
9
node_modules/webpack/lib/DynamicEntryPlugin.js
generated
vendored
9
node_modules/webpack/lib/DynamicEntryPlugin.js
generated
vendored
@@ -10,18 +10,24 @@ const EntryPlugin = require("./EntryPlugin");
|
||||
const EntryDependency = require("./dependencies/EntryDependency");
|
||||
|
||||
/** @typedef {import("../declarations/WebpackOptions").EntryDescriptionNormalized} EntryDescriptionNormalized */
|
||||
/** @typedef {import("../declarations/WebpackOptions").EntryDynamicNormalized} EntryDynamic */
|
||||
/** @typedef {import("../declarations/WebpackOptions").EntryStatic} EntryStatic */
|
||||
/** @typedef {import("../declarations/WebpackOptions").EntryStaticNormalized} EntryStaticNormalized */
|
||||
/** @typedef {import("./Compiler")} Compiler */
|
||||
|
||||
const PLUGIN_NAME = "DynamicEntryPlugin";
|
||||
|
||||
/** @typedef {() => EntryStatic | Promise<EntryStatic>} RawEntryDynamic */
|
||||
/** @typedef {() => Promise<EntryStaticNormalized>} EntryDynamic */
|
||||
|
||||
class DynamicEntryPlugin {
|
||||
/**
|
||||
* @param {string} context the context path
|
||||
* @param {EntryDynamic} entry the entry value
|
||||
*/
|
||||
constructor(context, entry) {
|
||||
/** @type {string} */
|
||||
this.context = context;
|
||||
/** @type {EntryDynamic} */
|
||||
this.entry = entry;
|
||||
}
|
||||
|
||||
@@ -44,6 +50,7 @@ class DynamicEntryPlugin {
|
||||
compiler.hooks.make.tapPromise(PLUGIN_NAME, (compilation) =>
|
||||
Promise.resolve(this.entry())
|
||||
.then((entry) => {
|
||||
/** @type {Promise<void>[]} */
|
||||
const promises = [];
|
||||
for (const name of Object.keys(entry)) {
|
||||
const desc = entry[name];
|
||||
|
||||
Reference in New Issue
Block a user