Skip to content

Commit 1f36b68

Browse files
committed
Improve ModuleParseError loader hint
1 parent 2eb0d6a commit 1f36b68

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/ModuleParseError.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ class ModuleParseError extends WebpackError {
4040
"\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\"').";
4141
} else if (!loaders) {
4242
message +=
43-
"\nYou may need an appropriate loader to handle this file type.";
43+
"\nYou may need an appropriate loader to handle this file type. " +
44+
"See https://webpack.js.org/concepts/loaders";
4445
} else if (loaders.length >= 1) {
4546
message += `\nFile was processed with these loaders:${loaders
4647
.map((loader) => `\n * ${loader}`)

0 commit comments

Comments
 (0)