Zum Inhalt springen
verdict:

webpack 5.102.0

notable

note: die Zusammenfassung und die Release Notes sind auf Englisch

note: keine Zusammenfassung für dieses ältere Release

Wir fassen die neueren Releases zusammen. Die originalen Release Notes dieser Version stehen hier unten.

release-notesgithub.com/webpack/webpack · 32 Zeilen
  1. ### Features
  2. - Added static analyze for dynamic imports
  3. - Added support for `import file from "./file.ext" with { type: "bytes" }` to get the content as `Uint8Array` (look at [example](https://github.com/webpack/webpack/tree/main/examples/asset))
  4. - Added support for `import file from "./file.ext" with { type: "text" }` to get the content as text (look at [example](https://github.com/webpack/webpack/tree/main/examples/asset))
  5. - Added the `snapshot.contextModule` to configure snapshots options for context modules
  6. - Added the `extractSourceMap` option to implement the capabilities of loading source maps by comment, you don't need `source-map-loader` (look at [example](https://github.com/webpack/webpack/tree/main/examples/source-mapping-url))
  7. - The `topLevelAwait` experiment is now stable (you can remove `experiments.topLevelAwait` from your `webpack.config.js`)
  8. - The `layers` experiment is now stable (you can remove `experiments.layers` from your `webpack.config.js`)
  9. - Added function matcher support in rule options
  10. ### Fixes
  11. - Fixed conflicts caused by multiple concatenate modules
  12. - Ignore import failure during HMR update with ES modules output
  13. - Keep render module order consistent
  14. - Prevent inlining modules that have `this` exports
  15. - Removed unused `timeout` attribute of script tag
  16. - Supported UMD chunk format to work in web workers
  17. - Improved CommonJs bundle to ES module library
  18. - Use `es-lexer` for `mjs` files for build dependencies
  19. - Fixed support `__non_webpack_require__` for ES modules
  20. - Properly handle external modules for CSS
  21. - AssetsByChunkName included assets from `chunk.auxiliaryFiles`
  22. - Use `createRequire` only when output is ES module and target is node
  23. - Typescript types
  24. ### Performance Improvements
  25. - Avoid extra calls for snapshot
  26. - A avoid extra jobs for build dependencies
  27. - Move import attributes to own dependencies

auf github ansehenimported 2026-09-28 über npm