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:
19
node_modules/webpack/lib/dependencies/ImportParserPlugin.js
generated
vendored
19
node_modules/webpack/lib/dependencies/ImportParserPlugin.js
generated
vendored
@@ -17,7 +17,7 @@ const ContextDependencyHelpers = require("./ContextDependencyHelpers");
|
||||
const ImportContextDependency = require("./ImportContextDependency");
|
||||
const ImportDependency = require("./ImportDependency");
|
||||
const ImportEagerDependency = require("./ImportEagerDependency");
|
||||
const { ImportPhaseUtils, createGetImportPhase } = require("./ImportPhase");
|
||||
const { createGetImportPhase } = require("./ImportPhase");
|
||||
const ImportWeakDependency = require("./ImportWeakDependency");
|
||||
|
||||
/** @typedef {import("../../declarations/WebpackOptions").JavascriptParserOptions} JavascriptParserOptions */
|
||||
@@ -262,11 +262,14 @@ class ImportParserPlugin {
|
||||
parser.hooks.importCall.tap(PLUGIN_NAME, (expr, importThen) => {
|
||||
const param = parser.evaluateExpression(expr.source);
|
||||
|
||||
/** @type {null | string} */
|
||||
let chunkName = null;
|
||||
let mode = /** @type {ContextMode} */ (this.options.dynamicImportMode);
|
||||
/** @type {null | RegExp} */
|
||||
let include = null;
|
||||
/** @type {null | RegExp} */
|
||||
let exclude = null;
|
||||
/** @type {RawReferencedExports | null} */
|
||||
/** @type {null | RawReferencedExports} */
|
||||
let exports = null;
|
||||
/** @type {RawChunkGroupOptions} */
|
||||
const groupOptions = {};
|
||||
@@ -557,15 +560,6 @@ class ImportParserPlugin {
|
||||
mode = "async-weak";
|
||||
}
|
||||
|
||||
if (ImportPhaseUtils.isDefer(phase)) {
|
||||
parser.state.module.addWarning(
|
||||
new UnsupportedFeatureWarning(
|
||||
"import.defer() is not yet supported for ContextModule (the import path is a dynamic expression).",
|
||||
/** @type {DependencyLocation} */ (expr.loc)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
const dep = ContextDependencyHelpers.create(
|
||||
ImportContextDependency,
|
||||
/** @type {Range} */ (expr.range),
|
||||
@@ -586,7 +580,8 @@ class ImportParserPlugin {
|
||||
typePrefix: "import()",
|
||||
category: "esm",
|
||||
referencedExports: exports,
|
||||
attributes: getImportAttributes(expr)
|
||||
attributes: getImportAttributes(expr),
|
||||
phase
|
||||
},
|
||||
parser
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user