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:
6
node_modules/webpack/lib/ModuleParseError.js
generated
vendored
6
node_modules/webpack/lib/ModuleParseError.js
generated
vendored
@@ -8,6 +8,7 @@
|
||||
const WebpackError = require("./WebpackError");
|
||||
const makeSerializable = require("./util/makeSerializable");
|
||||
|
||||
/** @typedef {import("./Dependency").DependencyLocation} DependencyLocation */
|
||||
/** @typedef {import("./Dependency").SourcePosition} SourcePosition */
|
||||
/** @typedef {import("./serialization/ObjectMiddleware").ObjectDeserializerContext} ObjectDeserializerContext */
|
||||
/** @typedef {import("./serialization/ObjectMiddleware").ObjectSerializerContext} ObjectSerializerContext */
|
||||
@@ -23,6 +24,7 @@ class ModuleParseError extends WebpackError {
|
||||
*/
|
||||
constructor(source, err, loaders, type) {
|
||||
let message = `Module parse failed: ${err && err.message}`;
|
||||
/** @type {undefined | DependencyLocation} */
|
||||
let loc;
|
||||
|
||||
if (
|
||||
@@ -40,7 +42,8 @@ class ModuleParseError extends WebpackError {
|
||||
"\nFor files that transpile to WebAssembly, make sure to set the module type in the 'module.rules' section of the config (e. g. 'type: \"webassembly/async\"').";
|
||||
} else if (!loaders) {
|
||||
message +=
|
||||
"\nYou may need an appropriate loader to handle this file type.";
|
||||
"\nYou may need an appropriate loader to handle this file type. " +
|
||||
"See https://webpack.js.org/concepts/loaders";
|
||||
} else if (loaders.length >= 1) {
|
||||
message += `\nFile was processed with these loaders:${loaders
|
||||
.map((loader) => `\n * ${loader}`)
|
||||
@@ -88,6 +91,7 @@ class ModuleParseError extends WebpackError {
|
||||
|
||||
super(message);
|
||||
|
||||
/** @type {string} */
|
||||
this.name = "ModuleParseError";
|
||||
this.loc = loc;
|
||||
this.error = err;
|
||||
|
||||
Reference in New Issue
Block a user