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:
8
node_modules/webpack/lib/optimize/RuntimeChunkPlugin.js
generated
vendored
8
node_modules/webpack/lib/optimize/RuntimeChunkPlugin.js
generated
vendored
@@ -16,9 +16,9 @@ class RuntimeChunkPlugin {
|
||||
/**
|
||||
* @param {{ name?: RuntimeChunkFunction }=} options options
|
||||
*/
|
||||
constructor(options) {
|
||||
constructor(options = {}) {
|
||||
/** @type {{ name: string | RuntimeChunkFunction }} */
|
||||
this.options = {
|
||||
/** @type {RuntimeChunkFunction} */
|
||||
name: (entrypoint) => `runtime~${entrypoint.name}`,
|
||||
...options
|
||||
};
|
||||
@@ -38,9 +38,7 @@ class RuntimeChunkPlugin {
|
||||
(compilation.entries.get(entryName));
|
||||
if (data.options.runtime === undefined && !data.options.dependOn) {
|
||||
// Determine runtime chunk name
|
||||
let name =
|
||||
/** @type {string | RuntimeChunkFunction} */
|
||||
(this.options.name);
|
||||
let name = this.options.name;
|
||||
if (typeof name === "function") {
|
||||
name = name({ name: entryName });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user