docs(experiments): document CSS scope hoisting and @value in URLs (5.107)#8244
Merged
Conversation
…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)
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
alexander-akait
approved these changes
May 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Webpack 5.107 brings two additions to the
experiments.cssfeature set:exportTypeoftext,css-style-sheet,style, orlink, reducing runtime overhead in CSS-heavy bundles whenoptimization.concatenateModulesis enabled.@valueidentifiers can be used as the path argument to@importand insideurl()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:
@valueidentifiers as@importURLs and insideurl()webpack#20925 (@value in URLs)Test plan
Use of AI
Drafted with Claude under human review. The contributor verified each change against the upstream webpack PR before commit.