Download Latest Version v3.8.0 source code.zip (5.7 MB)
Email in envelope

Get an email when there's a new version of Modern.js

Home / v3.5.0
Name Modified Size InfoDownloads / Week
Parent folder
README.md 2026-06-26 3.5 kB
v3.5.0 source code.tar.gz 2026-06-26 3.6 MB
v3.5.0 source code.zip 2026-06-26 5.4 MB
Totals: 3 Items   9.0 MB 0

What's Changed

New Features 🎉

Bug Fixes 🐞

Other Changes ✨

Rsbuild Update 📦

  • Upgrade @rsbuild/core from v2.0.10 to v2.1.0. See v2.1.0 for details.

更新内容

新特性 🎉

  • A new additive app-tools hook modifyBuilderEnvironments runs in generateBuilder after the framework's static environment merge and before createBuilder. It mirrors modifyEntrypoints as a transform-object async hook: each tapped callback receives { environments } and may return a replacement map that chains to the next callback; tapping nothing leaves the environments byte-identical, so the change is fully backward compatible. This lets frameworks programmatically add environments (e.g. a custom browser worker environment), set per-environment output/distPath/ordering, or otherwise adjust the resolved environments map instead of being limited to a config-static merge. feat(app-tools): 新增 modifyBuilderEnvironments hook,可在创建 builder 前变换 builder 环境表 新增的 app-tools hook modifyBuilderEnvironmentsgenerateBuilder 中、框架静态环境合并之后、createBuilder 之前执行。它与 modifyEntrypoints 一致,是 transform-object 异步 hook:每个回调收到 { environments },可返回替换后的环境表并链式传给下一个回调;不挂载任何回调时环境表字节不变,完全向后兼容。框架可借此以编程方式新增环境(如自定义浏览器 worker 环境)、设置 per-environment 的 output/distPath/顺序,或调整已解析的环境表,而不再局限于静态配置合并。, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/8717
  • feat(builder): 更新 Rsbuild 版本到 2.1.0, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/8721

Bug 修复 🐞

其他变更 ✨

Rsbuild 更新 📦

  • 升级 @rsbuild/core 从 v2.0.10 到 v2.1.0,查看 v2.1.0 了解详情。
Source: README.md, updated 2026-06-26