Skip to content

docs(module): exportsConvention function form now accepts string[]#8240

Merged
alexander-akait merged 1 commit into
mainfrom
docs/css-exportsconvention-array
May 18, 2026
Merged

docs(module): exportsConvention function form now accepts string[]#8240
alexander-akait merged 1 commit into
mainfrom
docs/css-exportsconvention-array

Conversation

@bjohansebas
Copy link
Copy Markdown
Member

Summary

Webpack 5.107 lets the generator.exportsConvention function for CSS modules return either a string or a string[]. Returning an array exports the local class under every name in the array, matching css-loader's behavior.

Updates the inline type comments in the module.generator example and adds a dedicated subsection "Multiple aliases via exportsConvention" with a worked example in configuration/module.mdx.

Refs: webpack/webpack#20914

Test plan

  • Visual check of the new subsection
  • Verify the badge shows "5.107.0+"

@vercel
Copy link
Copy Markdown

vercel Bot commented May 17, 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 May 17, 2026 2:33am

Request Review

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented May 17, 2026

CLA Signed
The committers listed above are authorized under a signed CLA.

  • ✅ login: bjohansebas / name: Sebastian Beltran (3c252fb)

Webpack 5.107 lets the generator.exportsConvention function for CSS
modules return either a string or a string[]. Returning an array
exports the local class under every name in the array, matching
css-loader's behavior. Updates the type comments in the module.generator
example and adds a dedicated subsection with a worked example.

Refs: webpack/webpack#20914
@alexander-akait alexander-akait merged commit 2f24ec5 into main May 18, 2026
9 checks passed
@alexander-akait alexander-akait deleted the docs/css-exportsconvention-array branch May 18, 2026 15:20
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