Skip to content

docs(guides): convert caching webpack.config.js to esm#7791

Merged
alexander-akait merged 1 commit into
webpack:mainfrom
Brennvo:docs/caching-to-esm
Feb 8, 2026
Merged

docs(guides): convert caching webpack.config.js to esm#7791
alexander-akait merged 1 commit into
webpack:mainfrom
Brennvo:docs/caching-to-esm

Conversation

@Brennvo
Copy link
Copy Markdown
Contributor

@Brennvo Brennvo commented Feb 8, 2026

Summary

Supports #7772.

The "Getting Started" guide uses ESM syntax for webpack.config.js, but later sections switch to CommonJS, creating inconsistency. This PR converts all webpack.config.js snippets in "Caching" to ESM1. Remaining sections will follow in future PRs.

What kind of change does this PR introduce?

A documentation refinement.

Did you add tests for your changes?

No

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?

N/A

Footnotes

  1. It was decided in docs(guides): use CommonJS for webpack.config.js #7776 that ESM syntax will be used throughout the guide.

@vercel
Copy link
Copy Markdown

vercel Bot commented Feb 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webpack-js-org Ready Ready Preview, Comment Feb 8, 2026 2:09pm

Request Review

@alexander-akait alexander-akait merged commit 9baab89 into webpack:main Feb 8, 2026
8 checks passed
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