Skip to content

Improve ModuleParseError loader hint#20244

Merged
alexander-akait merged 2 commits intowebpack:mainfrom
gaurav10gg:main
Dec 19, 2025
Merged

Improve ModuleParseError loader hint#20244
alexander-akait merged 2 commits intowebpack:mainfrom
gaurav10gg:main

Conversation

@gaurav10gg
Copy link
Contributor

Summary

This PR improves the ModuleParseError message shown when no loaders are
configured by adding a link to the loaders documentation, making it clearer
how users can resolve the error.

What kind of change does this PR introduce?

Documentation / developer experience improvement (error message clarity).

Did you add tests for your changes?

No. This change only updates a user-facing error message and does not affect
runtime behavior or logic.

Does this PR introduce a breaking change?

No.

If relevant, what needs to be documented once your changes are merged or what have you already documented?

No additional documentation is required. This change only improves an existing
error message.

@changeset-bot
Copy link

changeset-bot bot commented Dec 16, 2025

🦋 Changeset detected

Latest commit: f2b0fcf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
webpack Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 16, 2025

CLA Signed

The committers listed above are authorized under a signed CLA.

  • ✅ login: alexander-akait / name: Alexander Akait (f2b0fcf)
  • ✅ login: gaurav10gg / name: Gaurav G (1f36b68)

@codspeed-hq
Copy link

codspeed-hq bot commented Dec 16, 2025

CodSpeed Performance Report

Merging #20244 will improve performances by 20.28%

Comparing gaurav10gg:main (f2b0fcf) with main (505a5e7)

Summary

⚡ 1 improvement
✅ 71 untouched

Benchmarks breakdown

Benchmark BASE HEAD Change
benchmark "three-long", scenario '{"name":"mode-production","mode":"production"}' 3.1 s 2.6 s +20.28%

@alexander-akait alexander-akait merged commit b0e340c into webpack:main Dec 19, 2025
54 of 55 checks passed
@github-actions
Copy link
Contributor

This PR is packaged and the instant preview is available (b0e340c).

Install it locally:

  • npm
npm i -D webpack@https://pkg.pr.new/webpack@b0e340c
  • yarn
yarn add -D webpack@https://pkg.pr.new/webpack@b0e340c
  • pnpm
pnpm add -D webpack@https://pkg.pr.new/webpack@b0e340c

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants