# webpack/release
webpack v5.111.0
importance: highbreakingfeature
This release introduces several enhancements to Webpack's ESM support, including enabling `output.module` by default for ESM-capable targets and removing the `experiments.outputModule` flag. It also adds new features like `output.copy` for copying files and directories, and improves CSS and JSON minification.
affected
Developers using Webpack for ESM projects or those relying on `experiments.outputModule` will be affected by the changes.
action
Update your Webpack configuration to use `output.module` instead of `experiments.outputModule`.
release_signals
-Remove `experiments.outputModule`, set `output.module` to emit ESM instead.
+Enable `output.module` by default with `futureDefaults` on ESM-capable targets.
+Add `output.copy` to copy files and directories into the output directory.
+Minify inline CSS and JSON via `renderEmbeddedSource`.
+Export `cssMinify` and `htmlMinify` on `css.syntax` and `html.syntax`.
+Add `output.environment.topLevelAwait` and await every async ESM entry.
code_snippet
Enable `output.module` by default with `futureDefaults` on ESM-capable targets.# 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.