# webpack/release
webpack v5.107.0
importance: highfeature
This release introduces several enhancements for CSS modules, including improved module concatenation, support for `@value` identifiers, and new hooks for plugin developers. Additionally, it adds experimental TypeScript support and improves tree-shaking with the `#__NO_SIDE_EFFECTS__` annotation.
affected
Developers using CSS modules, TypeScript, or needing better tree-shaking will benefit from these changes.
action
Review the new options and hooks to leverage the improvements in CSS modules and TypeScript support.
release_signals
+Added `module.generator.javascript.anonymousDefaultExportName` option to control `.name` for anonymous default exports.
+Support for module concatenation (scope hoisting) for CSS modules with `text`, `css-style-sheet`, `style`, and `link` export types.
+Added `linkInsert` hook to `CssLoadingRuntimeModule.getCompilationHooks(compilation)` for controlling stylesheet `<link>` insertion.
+Experimental TypeScript support via `experiments.typescript: true`.
+Added `#__NO_SIDE_EFFECTS__` annotation for marking functions as pure for better tree-shaking.
code_snippet
module.exports = {
module: {
generator: {
javascript: {
anonymousDefaultExportName: true
}
}
}
};# community_signal
How useful is this release to your stack?
—
net score
Sign in with GitHub to cast your vote.
Sign in with GitHub to vote
You’ll return to this release, then choose your vote.