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:
23
node_modules/webpack/lib/RuntimeTemplate.js
generated
vendored
23
node_modules/webpack/lib/RuntimeTemplate.js
generated
vendored
@@ -84,7 +84,7 @@ function getGlobalObject(definition) {
|
||||
// iife
|
||||
// call expression
|
||||
// expression in parentheses
|
||||
/^([_\p{L}][_0-9\p{L}]*)?\(.*\)$/iu.test(trimmed)
|
||||
/^(?:[_\p{L}][_0-9\p{L}]*)?\(.*\)$/iu.test(trimmed)
|
||||
) {
|
||||
return trimmed;
|
||||
}
|
||||
@@ -356,6 +356,7 @@ class RuntimeTemplate {
|
||||
* @returns {string} comment
|
||||
*/
|
||||
comment({ request, chunkName, chunkReason, message, exportName }) {
|
||||
/** @type {string} */
|
||||
let content;
|
||||
if (this.outputOptions.pathinfo) {
|
||||
content = [message, request, chunkName, chunkReason]
|
||||
@@ -678,6 +679,7 @@ class RuntimeTemplate {
|
||||
runtimeRequirements
|
||||
});
|
||||
|
||||
/** @type {string} */
|
||||
let appending;
|
||||
let idExpr = JSON.stringify(chunkGraph.getModuleId(module));
|
||||
const comment = this.comment({
|
||||
@@ -711,7 +713,10 @@ class RuntimeTemplate {
|
||||
|
||||
if (isModuleDeferred) {
|
||||
runtimeRequirements.add(RuntimeGlobals.makeDeferredNamespaceObject);
|
||||
const mode = getMakeDeferredNamespaceModeFromExportsType(exportsType);
|
||||
|
||||
let mode = getMakeDeferredNamespaceModeFromExportsType(exportsType);
|
||||
if (mode) mode = `${mode} | 16`;
|
||||
|
||||
const asyncDeps = Array.from(
|
||||
getOutgoingAsyncModules(chunkGraph.moduleGraph, module),
|
||||
(m) => chunkGraph.getModuleId(m)
|
||||
@@ -852,14 +857,14 @@ class RuntimeTemplate {
|
||||
* @param {object} options options object
|
||||
* @param {boolean=} options.update whether a new variable should be created or the existing one updated
|
||||
* @param {Module} options.module the module
|
||||
* @param {Module} options.originModule module in which the statement is emitted
|
||||
* @param {ModuleGraph} options.moduleGraph the module graph
|
||||
* @param {ChunkGraph} options.chunkGraph the chunk graph
|
||||
* @param {string} options.request the request that should be printed as comment
|
||||
* @param {string} options.importVar name of the import variable
|
||||
* @param {Module} options.originModule module in which the statement is emitted
|
||||
* @param {boolean=} options.weak true, if this is a weak dependency
|
||||
* @param {RuntimeRequirements} options.runtimeRequirements if set, will be filled with runtime requirements
|
||||
* @param {ModuleDependency} options.dependency module dependency
|
||||
* @param {string} options.importVar name of the import variable
|
||||
* @param {string=} options.request the request that should be printed as comment
|
||||
* @param {boolean=} options.weak true, if this is a weak dependency
|
||||
* @param {ModuleDependency=} options.dependency module dependency
|
||||
* @returns {[string, string]} the import statement and the compat statement
|
||||
*/
|
||||
importStatement({
|
||||
@@ -918,6 +923,8 @@ class RuntimeTemplate {
|
||||
(originModule.buildMeta).strictHarmonyModule
|
||||
);
|
||||
runtimeRequirements.add(RuntimeGlobals.require);
|
||||
|
||||
/** @type {string} */
|
||||
let importContent;
|
||||
|
||||
const isModuleDeferred =
|
||||
@@ -961,7 +968,7 @@ class RuntimeTemplate {
|
||||
* @param {string | string[]} options.exportName the export name
|
||||
* @param {Module} options.originModule the origin module
|
||||
* @param {boolean | undefined} options.asiSafe true, if location is safe for ASI, a bracket can be emitted
|
||||
* @param {boolean} options.isCall true, if expression will be called
|
||||
* @param {boolean | undefined} options.isCall true, if expression will be called
|
||||
* @param {boolean | null} options.callContext when false, call context will not be preserved
|
||||
* @param {boolean} options.defaultInterop when true and accessing the default exports, interop code will be generated
|
||||
* @param {string} options.importVar the identifier name of the import variable
|
||||
|
||||
Reference in New Issue
Block a user