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:
11
node_modules/webpack/lib/node/NodeTargetPlugin.js
generated
vendored
11
node_modules/webpack/lib/node/NodeTargetPlugin.js
generated
vendored
@@ -77,6 +77,7 @@ class NodeTargetPlugin {
|
||||
* @param {ExternalsType} type default external type
|
||||
*/
|
||||
constructor(type = "node-commonjs") {
|
||||
/** @type {ExternalsType} */
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
@@ -86,7 +87,15 @@ class NodeTargetPlugin {
|
||||
* @returns {void}
|
||||
*/
|
||||
apply(compiler) {
|
||||
new ExternalsPlugin(this.type, builtins).apply(compiler);
|
||||
new ExternalsPlugin((dependency) => {
|
||||
// When `require` node.js built-in modules with module output
|
||||
// we should still emit `createRequire` for compatibility
|
||||
if (dependency.category === "commonjs") {
|
||||
return "node-commonjs";
|
||||
}
|
||||
|
||||
return this.type;
|
||||
}, builtins).apply(compiler);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user