Skip to content

docs(experiments): document CSS scope hoisting and @value in URLs (5.107)#8244

Merged
alexander-akait merged 1 commit into
mainfrom
docs/experiments-css-5-107
May 18, 2026
Merged

docs(experiments): document CSS scope hoisting and @value in URLs (5.107)#8244
alexander-akait merged 1 commit into
mainfrom
docs/experiments-css-5-107

Conversation

@bjohansebas
Copy link
Copy Markdown
Member

Summary

Webpack 5.107 brings two additions to the experiments.css feature set:

  • Scope hoisting (module concatenation) now applies to CSS Modules with exportType of text, css-style-sheet, style, or link, reducing runtime overhead in CSS-heavy bundles when optimization.concatenateModules is enabled.
  • @value identifiers can be used as the path argument to @import and inside url() references, so shared paths/assets are defined once and reused. Both quoted ("./x", './x') and bare (./x) forms are accepted and resolved through webpack's normal asset pipeline.

Adds two bullets to the existing experimental features list in experiments.css.

Refs:

Test plan

  • Visual check of the new bullets and code example
  • Verify the badges show "5.107.0+"

Use of AI

Drafted with Claude under human review. The contributor verified each change against the upstream webpack PR before commit.

…107)

Webpack 5.107 brings two additions to the experiments.css feature set:

- Scope hoisting (module concatenation) now applies to CSS Modules with
  exportType "text", "css-style-sheet", "style", or "link", reducing
  runtime overhead in CSS-heavy bundles when
  optimization.concatenateModules is enabled.
- @value identifiers can be used as the path argument to @import and
  inside url() references, so shared paths/assets are defined once and
  reused. Both quoted and bare forms are accepted and resolved through
  webpack's normal asset pipeline.

Adds two bullets to the existing experimental features list in
experiments.css.

Refs:
- webpack/webpack#20851 (scope hoisting)
- webpack/webpack#20925 (@value in URLs)
@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:21am

Request Review

@alexander-akait alexander-akait merged commit 64581a0 into main May 18, 2026
10 checks passed
@alexander-akait alexander-akait deleted the docs/experiments-css-5-107 branch May 18, 2026 15:21
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