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:
12
node_modules/webpack/lib/ids/NamedChunkIdsPlugin.js
generated
vendored
12
node_modules/webpack/lib/ids/NamedChunkIdsPlugin.js
generated
vendored
@@ -28,9 +28,9 @@ class NamedChunkIdsPlugin {
|
||||
/**
|
||||
* @param {NamedChunkIdsPluginOptions=} options options
|
||||
*/
|
||||
constructor(options) {
|
||||
this.delimiter = (options && options.delimiter) || "-";
|
||||
this.context = options && options.context;
|
||||
constructor(options = {}) {
|
||||
/** @type {NamedChunkIdsPluginOptions} */
|
||||
this.options = options;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -43,8 +43,10 @@ class NamedChunkIdsPlugin {
|
||||
const hashFunction = compilation.outputOptions.hashFunction;
|
||||
compilation.hooks.chunkIds.tap(PLUGIN_NAME, (chunks) => {
|
||||
const chunkGraph = compilation.chunkGraph;
|
||||
const context = this.context ? this.context : compiler.context;
|
||||
const delimiter = this.delimiter;
|
||||
const context = this.options.context
|
||||
? this.options.context
|
||||
: compiler.context;
|
||||
const delimiter = this.options.delimiter || "-";
|
||||
|
||||
const unnamedChunks = assignNames(
|
||||
[...chunks].filter((chunk) => {
|
||||
|
||||
Reference in New Issue
Block a user