| Name | Modified | Size | Downloads / 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 🎉
- feat(app-tools): add
modifyBuilderEnvironmentshook to transform the builder environments map before the builder is created in https://github.com/web-infra-dev/modern.js/pull/8717 - feat(builder): upgrade rsbuild version to 2.1.0 in https://github.com/web-infra-dev/modern.js/pull/8721
Bug Fixes 🐞
- fix(runtime): use the final HTML template parameters when rendering custom Document in https://github.com/web-infra-dev/modern.js/pull/8715
Other Changes ✨
- chore(ai-infra): repo-level AI coding agents infrastructure (AGENTS.md / CLAUDE.md, skills docs, AI Coding Agents guide). in https://github.com/web-infra-dev/modern.js/pull/8651
- chore(builder): upgrade @rsbuild/plugin-type-check to 1.5.0 in https://github.com/web-infra-dev/modern.js/pull/8725
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
modifyBuilderEnvironmentsruns ingenerateBuilderafter the framework's static environment merge and beforecreateBuilder. It mirrorsmodifyEntrypointsas 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-environmentoutput/distPath/ordering, or otherwise adjust the resolved environments map instead of being limited to a config-static merge. feat(app-tools): 新增modifyBuilderEnvironmentshook,可在创建 builder 前变换 builder 环境表 新增的 app-tools hookmodifyBuilderEnvironments在generateBuilder中、框架静态环境合并之后、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 修复 🐞
- fix(runtime): 渲染自定义 Document 时使用最终的 HTML 模板参数, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/8715
其他变更 ✨
- No package release needed: this PR only adds repo-level files and docs content; it makes no change to any published package's runtime (
@modern-js/createhas zero net diff). Empty changeset added to satisfy the changeset bot without triggering a version bump., 详情可查看 https://github.com/web-infra-dev/modern.js/pull/8651 - chore(builder): 升级 @rsbuild/plugin-type-check 到 1.5.0, 详情可查看 https://github.com/web-infra-dev/modern.js/pull/8725
Rsbuild 更新 📦
- 升级 @rsbuild/core 从 v2.0.10 到 v2.1.0,查看 v2.1.0 了解详情。