Releases: rollup/rollup
Releases · rollup/rollup
v4.40.2
4.40.2
2025-05-06
Bug Fixes
- Create correct IIFE/AMD/UMD bundles when using a mutable default export (#5934)
- Fix execution order when using top-level await for dynamic imports with inlineDynamicImports (#5937)
- Throw when the output is watched in watch mode (#5939)
Pull Requests
- #5934: fix(exports): avoid "exports is not defined"
ReferenceError
(@dasa) - #5937: consider TLA imports have higher execution priority (@TrickyPi)
- #5939: fix: watch mode input should not be an output subpath (@btea)
- #5940: chore(deps): update dependency vite to v6.3.4 [security] (@renovate[bot])
- #5941: chore(deps): update dependency eslint-plugin-unicorn to v59 (@renovate[bot])
- #5942: fix(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #5943: fix(deps): lock file maintenance minor/patch updates (@renovate[bot])
v4.40.1
4.40.1
2025-04-28
Bug Fixes
- Limit hash size for asset file names to the supported 21 (#5921)
- Do not inline user-defined entry chunks or chunks with explicit file name (#5923)
- Avoid top-level-await cycles when non-entry chunks use top-level await (#5930)
- Expose package.json via exports (#5931)
Pull Requests
- #5921: fix(assetFileNames): reduce max hash size to 21 (@shulaoda)
- #5923: fix: generate the separate chunk for the entry module with explicated chunk filename or name (@TrickyPi)
- #5926: fix(deps): update rust crate swc_compiler_base to v18 (@renovate[bot])
- #5927: fix(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #5928: fix(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #5930: Avoid chunks TLA dynamic import circular when TLA dynamic import used in non-entry modules (@TrickyPi)
- #5931: chore: add new
./package.json
entry (@JounQin, @lukastaegert) - #5936: fix(deps): lock file maintenance minor/patch updates (@renovate[bot])
v4.40.0
4.40.0
2025-04-12
Features
- Only show
eval
warnings on first render and only when the call is not tree-shaken (#5892) - Tree-shake non-included dynamic import members when the handler just maps to one named export (#5898)
Bug Fixes
- Consider dynamic imports nested within top-level-awaited dynamic import expressions to be awaited as well (#5900)
- Fix namespace rendering when tree-shaking is disabled (#5908)
- When using multiple transform hook filters, all of them need to be satisfied together (#5909)
Pull Requests
- #5892: Warn when eval or namespace calls are rendered, not when they are parsed (@SunsetFi, @lukastaegert)
- #5898: feat: treeshake dynamic import chained member expression (@privatenumber, @lukastaegert)
- #5900: consider the dynamic import within a TLA call expression as a TLA import (@TrickyPi)
- #5904: fix(deps): update swc monorepo (major) (@renovate[bot])
- #5905: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #5908: Fix
treeshake: false
breaking destructured namespace imports (@Skn0tt) - #5909: Correct the behavior when multiple transform filter options are specified (@sapphi-red)
- #5915: chore(deps): update dependency @types/picomatch to v4 (@renovate[bot])
- #5916: fix(deps): update rust crate swc_compiler_base to v17 (@renovate[bot])
- #5917: chore(deps): lock file maintenance minor/patch updates (@renovate[bot], @lukastaegert)
- #5918: chore(deps): update dependency vite to v6.2.6 [security] (@renovate[bot], @lukastaegert)
v4.39.0
4.39.0
2025-04-02
Features
- Do not create separate facade chunks if a chunk would contain several entry modules that allow export extension if there are no export name conflicts (#5891)
Bug Fixes
- Mark the
id
property as optional in the filter for theresolveId
hook (#5896)
Pull Requests
- #5891: chunk: merge allow-extension modules (@wmertens, @lukastaegert)
- #5893: chore(deps): update dependency vite to v6.2.4 [security] (@renovate[bot])
- #5896: fix: resolveId id filter is optional (@sapphi-red)
v4.38.0
4.38.0
2025-03-29
Features
- Support
.filter
option inresolveId
,load
andtransform
hooks (#5882)
Pull Requests
v4.37.0
4.37.0
2025-03-23
Features
- Support Musl Linux on Riscv64 architectures (#5726)
- Handles class decorators placed before the
export
keyword (#5871)
Bug Fixes
- Log Rust panic messages to the console when using the WASM build (#5875)
Pull Requests
- #5726: Add support for linux riscv64 musl (@fossdd, @leso-kn)
- #5871: feat: support decorators before or after export (@TrickyPi)
- #5875: capture Rust panic messages and output them to the console. (@luyahan, @lukastaegert)
- #5883: Pin digest of 3rd party actions (@re-taro)
- #5885: fix(deps): lock file maintenance minor/patch updates (@renovate[bot])
v4.36.0
4.36.0
2025-03-17
Features
- Extend
renderDynamicImport
hook to provide information about static dependencies of the imported module (#5870) - Export several additional types used by Vite (#5879)
Bug Fixes
- Do not merge chunks if that would create a top-level await cycle between chunks (#5843)
Pull Requests
- #5843: avoiding top level await circular (@TrickyPi, @lukastaegert)
- #5870: draft for extended renderDynamicImport hook (@iczero, @lukastaegert)
- #5876: Update axios overrides to 1.8.2 (@vadym-khodak)
- #5877: chore(deps): update dependency eslint-plugin-vue to v10 (@renovate[bot])
- #5878: fix(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #5879: fix: export types (@sxzz)
v4.35.0
4.35.0
2025-03-08
Features
- Pass build errors to the closeBundle hook (#5867)
Pull Requests
- #5852: chore(deps): update dependency eslint-plugin-unicorn to v57 (@renovate[bot], @lukastaegert)
- #5862: fix(deps): update swc monorepo (major) (@renovate[bot], @lukastaegert)
- #5867: feat(5858): make closeBundle hook receive the last error (@GauBen)
- #5872: chore(deps): update dependency builtin-modules to v5 (@renovate[bot])
- #5873: chore(deps): update uraimo/run-on-arch-action action to v3 (@renovate[bot])
- #5874: fix(deps): lock file maintenance minor/patch updates (@renovate[bot])
v4.34.9
4.34.9
2025-03-01
Bug Fixes
Pull Requests
- #5850: Revert CustomPluginOptions to be an interface (@sapphi-red, @lukastaegert)
- #5851: Javascript to JavaScript (@dasa, @lukastaegert)
- #5853: chore(deps): update dependency pinia to v3 (@renovate[bot])
- #5854: fix(deps): update swc monorepo (major) (@renovate[bot])
- #5855: fix(deps): lock file maintenance minor/patch updates (@renovate[bot], @lukastaegert)
- #5860: chore(deps): update dependency @shikijs/vitepress-twoslash to v3 (@renovate[bot])
- #5861: chore(deps): update dependency globals to v16 (@renovate[bot])
- #5863: fix(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #5864: chore(deps): lock file maintenance minor/patch updates (@renovate[bot])
- #5866: Add jsx parameter to parseAsync in native.wasm.js (@TrickyPi)