web-infra-dev/modern.js (@modern-js/tsconfig)
### [`v2.60.5`](https://redirect.github.com/web-infra-dev/modern.js/releases/tag/v2.60.5)
[Compare Source](https://redirect.github.com/web-infra-dev/modern.js/compare/v2.60.4...v2.60.5)
#### What's Changed
##### New Features 🎉
- feat(deps): bump html-webpack-plugin to support getCompilationHooks by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6402](https://redirect.github.com/web-infra-dev/modern.js/pull/6402)
- feat: update [@types/node](https://redirect.github.com/types/node) version for template by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6418](https://redirect.github.com/web-infra-dev/modern.js/pull/6418)
- feat: router plugin add beforeCreateRoutes hook by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6417](https://redirect.github.com/web-infra-dev/modern.js/pull/6417)
- feat: generator upgrade tailwindcss version by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6423](https://redirect.github.com/web-infra-dev/modern.js/pull/6423)
##### Bug Fixes 🐞
- fix: upgrade command get modern version error by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6396](https://redirect.github.com/web-infra-dev/modern.js/pull/6396)
- fix: upgrade tools prepare generator error by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6398](https://redirect.github.com/web-infra-dev/modern.js/pull/6398)
- fix: when the enableCustomEntry is set to true, the `entry.tsx` should be recognized first. by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6420](https://redirect.github.com/web-infra-dev/modern.js/pull/6420)
#### 更新内容
##### 新特性 🎉
- feat: 更新生成器模板 [@types/node](https://redirect.github.com/types/node) 版本 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6418](https://redirect.github.com/web-infra-dev/modern.js/pull/6418)
- feat: router 插件添加 beforeCreateRoutes 钩子 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6417](https://redirect.github.com/web-infra-dev/modern.js/pull/6417)
- feat: 生成器升级 tailwindcss 版本 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6423](https://redirect.github.com/web-infra-dev/modern.js/pull/6423)
##### Bug 修复 🐞
- fix: 修复 upgrade 命令获取 modern 版本失败的问题 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6396](https://redirect.github.com/web-infra-dev/modern.js/pull/6396)
- fix: 修复 upgrade 工具准备阶段生成器失败的问题 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6398](https://redirect.github.com/web-infra-dev/modern.js/pull/6398)
- fix: 开启 enableCustomEntry 后, `entry.tsx` 入口应优先被识别 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6420](https://redirect.github.com/web-infra-dev/modern.js/pull/6420)
### [`v2.60.4`](https://redirect.github.com/web-infra-dev/modern.js/releases/tag/v2.60.4)
[Compare Source](https://redirect.github.com/web-infra-dev/modern.js/compare/v2.60.3...v2.60.4)
#### What's Changed
##### New Features 🎉
- feat: add `html.outputStructure` and doc by [@spencerHT](https://redirect.github.com/spencerHT) in [https://github.com/web-infra-dev/modern.js/pull/6375](https://redirect.github.com/web-infra-dev/modern.js/pull/6375)
- feat(server): add catch logic for ssrCache container operation by [@targeral](https://redirect.github.com/targeral) in [https://github.com/web-infra-dev/modern.js/pull/6390](https://redirect.github.com/web-infra-dev/modern.js/pull/6390)
- feat: optimize generator download by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6377](https://redirect.github.com/web-infra-dev/modern.js/pull/6377)
- feat: config/public directory ignore .gitkeep file by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6394](https://redirect.github.com/web-infra-dev/modern.js/pull/6394)
##### Bug Fixes 🐞
- fix(bff): should register esbuild for js projects by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6379](https://redirect.github.com/web-infra-dev/modern.js/pull/6379)
- fix: remove node_modules in watcher ignored list by [@zllkjc](https://redirect.github.com/zllkjc) in [https://github.com/web-infra-dev/modern.js/pull/6381](https://redirect.github.com/web-infra-dev/modern.js/pull/6381)
- fix(bff): zodError causing 500 error due to inconsistent zod versions by [@keepview](https://redirect.github.com/keepview) in [https://github.com/web-infra-dev/modern.js/pull/6384](https://redirect.github.com/web-infra-dev/modern.js/pull/6384)
- fix: `output.sourcemap` not work by [@SoonIter](https://redirect.github.com/SoonIter) in [https://github.com/web-infra-dev/modern.js/pull/6342](https://redirect.github.com/web-infra-dev/modern.js/pull/6342)
- fix: remove ssg stdout listener, only stderr by [@zllkjc](https://redirect.github.com/zllkjc) in [https://github.com/web-infra-dev/modern.js/pull/6387](https://redirect.github.com/web-infra-dev/modern.js/pull/6387)
- fix(server): should get context from unstable middleware correctly by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6391](https://redirect.github.com/web-infra-dev/modern.js/pull/6391)
- fix: upgrade react-router & log in debug mode only by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6388](https://redirect.github.com/web-infra-dev/modern.js/pull/6388)
- fix: should include files other than tsconfg.json by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6343](https://redirect.github.com/web-infra-dev/modern.js/pull/6343)
- fix(ssr): we match all asset directly, it can be more faster by [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) in [https://github.com/web-infra-dev/modern.js/pull/6386](https://redirect.github.com/web-infra-dev/modern.js/pull/6386)
#### 更新内容
##### 新特性 🎉
- feat: 展示 `html.outputStructure` 并添加文档 由 [@spencerHT](https://redirect.github.com/spencerHT) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6375](https://redirect.github.com/web-infra-dev/modern.js/pull/6375)
- feat(server): 为 ssr 缓存容器操作添加错误捕获逻辑 由 [@targeral](https://redirect.github.com/targeral) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6390](https://redirect.github.com/web-infra-dev/modern.js/pull/6390)
- feat: 优化生成器下载 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6377](https://redirect.github.com/web-infra-dev/modern.js/pull/6377)
- feat: config/public 目录忽略 .gitkeep 文件 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6394](https://redirect.github.com/web-infra-dev/modern.js/pull/6394)
##### Bug 修复 🐞
- fix(bff): 应该为 js 项目注册 esbuild 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6379](https://redirect.github.com/web-infra-dev/modern.js/pull/6379)
- fix: 移除 watcher 忽略列表中的 node_modules 由 [@zllkjc](https://redirect.github.com/zllkjc) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6381](https://redirect.github.com/web-infra-dev/modern.js/pull/6381)
- fix(bff): 修复由于 zod 版本不一致导致的 zodError 触发的 500 错误 由 [@keepview](https://redirect.github.com/keepview) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6384](https://redirect.github.com/web-infra-dev/modern.js/pull/6384)
- fix: `output.sourcemap` 不生效 由 [@SoonIter](https://redirect.github.com/SoonIter) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6342](https://redirect.github.com/web-infra-dev/modern.js/pull/6342)
- fix: 移除 ssg 的 stdout 监听,只保留 stderr 由 [@zllkjc](https://redirect.github.com/zllkjc) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6387](https://redirect.github.com/web-infra-dev/modern.js/pull/6387)
- fix(server): 应该正确地获取到 loaderContext 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6391](https://redirect.github.com/web-infra-dev/modern.js/pull/6391)
- fix: 更新 react-router 到最新版 & 只在 debug 模式下打印日志 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6388](https://redirect.github.com/web-infra-dev/modern.js/pull/6388)
- fix: 应该包含除了 tsconfig.json 以外的文件 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6343](https://redirect.github.com/web-infra-dev/modern.js/pull/6343)
- fix(ssr): 我们一次性匹配出所有资源,这样性能更快 由 [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6386](https://redirect.github.com/web-infra-dev/modern.js/pull/6386)
### [`v2.60.3`](https://redirect.github.com/web-infra-dev/modern.js/releases/tag/v2.60.3)
[Compare Source](https://redirect.github.com/web-infra-dev/modern.js/compare/v2.60.2...v2.60.3)
#### What's Changed
##### New Features 🎉
- feat(deps): unpin Rsbuild patch version by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6286](https://redirect.github.com/web-infra-dev/modern.js/pull/6286)
- feat: support dev.watchFiles reload-server option by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6336](https://redirect.github.com/web-infra-dev/modern.js/pull/6336)
- feat(module-plugin-polyfill): support polyfill Node.js builtin modules starting with node: by [@Timeless0911](https://redirect.github.com/Timeless0911) in [https://github.com/web-infra-dev/modern.js/pull/6315](https://redirect.github.com/web-infra-dev/modern.js/pull/6315)
- feat(deps): bump rsbuild 1.0.11 by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6338](https://redirect.github.com/web-infra-dev/modern.js/pull/6338)
##### Bug Fixes 🐞
- fix: copy configuration should only works in main(web) environment by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6340](https://redirect.github.com/web-infra-dev/modern.js/pull/6340)
- fix: should load ts-node from project by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6341](https://redirect.github.com/web-infra-dev/modern.js/pull/6341)
##### Docs update 📄
- docs: link `output.copy` to Rsbuild by [@chenjiahan](https://redirect.github.com/chenjiahan) in [https://github.com/web-infra-dev/modern.js/pull/6337](https://redirect.github.com/web-infra-dev/modern.js/pull/6337)
##### Other Changes
- chore(server): add `compiler` option for `createDevServer` by [@await-ovo](https://redirect.github.com/await-ovo) in [https://github.com/web-infra-dev/modern.js/pull/6287](https://redirect.github.com/web-infra-dev/modern.js/pull/6287)
#### 更新内容
##### 新特性 🎉
- feat(module-plugin-polyfill): 支持对 node: 开头的 Node.js builtin modules 进行 polyfill 由 [@Timeless0911](https://redirect.github.com/Timeless0911) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6315](https://redirect.github.com/web-infra-dev/modern.js/pull/6315)
##### Bug 修复 🐞
- fix: 应该从项目中加载 ts-node 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6341](https://redirect.github.com/web-infra-dev/modern.js/pull/6341)
##### 其他变更
- chore(server): 为 `createDevServer` 添加 `compiler` 选项 由 [@await-ovo](https://redirect.github.com/await-ovo) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6287](https://redirect.github.com/web-infra-dev/modern.js/pull/6287)
### [`v2.60.2`](https://redirect.github.com/web-infra-dev/modern.js/releases/tag/v2.60.2)
[Compare Source](https://redirect.github.com/web-infra-dev/modern.js/compare/v2.60.1...v2.60.2)
#### What's Changed
##### New Features 🎉
- feat(deps): bump rsbuild 1.0.6 & rspack 1.0.7 by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6262](https://redirect.github.com/web-infra-dev/modern.js/pull/6262)
- feat: add timing log for mwa and module generator to get solution version by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6259](https://redirect.github.com/web-infra-dev/modern.js/pull/6259)
- feat: create tools support --time option by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6240](https://redirect.github.com/web-infra-dev/modern.js/pull/6240)
- feat(router): router plugin should use the App Component from other plugins & export the markRoutes method by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6228](https://redirect.github.com/web-infra-dev/modern.js/pull/6228)
- feat(deploy): support server plugin options for deploy by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6234](https://redirect.github.com/web-infra-dev/modern.js/pull/6234)
- feat(deps): bump Rsbuild v1.0.7 by [@chenjiahan](https://redirect.github.com/chenjiahan) in [https://github.com/web-infra-dev/modern.js/pull/6270](https://redirect.github.com/web-infra-dev/modern.js/pull/6270)
- feat: Optimize generator log information by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6240](https://redirect.github.com/web-infra-dev/modern.js/pull/6240)
- feat: support Component, only use ssr.mode='string' by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6264](https://redirect.github.com/web-infra-dev/modern.js/pull/6264)
##### Bug Fixes 🐞
- fix(runtime): fix the alias problem on windows by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6233](https://redirect.github.com/web-infra-dev/modern.js/pull/6233)
- fix(module-tools): should distinguish sass and scss syntax by [@fi3ework](https://redirect.github.com/fi3ework) in [https://github.com/web-infra-dev/modern.js/pull/6267](https://redirect.github.com/web-infra-dev/modern.js/pull/6267)
- fix(runtime): alias [@meta/runtime](https://redirect.github.com/meta/runtime) should be configured correctly by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6230](https://redirect.github.com/web-infra-dev/modern.js/pull/6230)
##### Docs update 📄
- docs: add web server docs in concept part by [@zllkjc](https://redirect.github.com/zllkjc) in [https://github.com/web-infra-dev/modern.js/pull/6231](https://redirect.github.com/web-infra-dev/modern.js/pull/6231)
##### Other Changes
- chore: use module-tools from npm to speed up building by [@chenjiahan](https://redirect.github.com/chenjiahan) in [https://github.com/web-infra-dev/modern.js/pull/6252](https://redirect.github.com/web-infra-dev/modern.js/pull/6252)
- serve command package component by [@keepview](https://redirect.github.com/keepview) in [https://github.com/web-infra-dev/modern.js/pull/6261](https://redirect.github.com/web-infra-dev/modern.js/pull/6261)
#### 更新内容
##### 新特性 🎉
- feat: 增加 mwa 和 module 生成器获取工程方案版本的耗时日志 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6259](https://redirect.github.com/web-infra-dev/modern.js/pull/6259)
- feat: create 工具支持 --time 选项 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6240](https://redirect.github.com/web-infra-dev/modern.js/pull/6240)
- feat(router): router plugin 应该使用 App Component from other plugins & 导出 markRoutes 方法 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6228](https://redirect.github.com/web-infra-dev/modern.js/pull/6228)
- feat(deploy): 支持生产环境消费 server 插件配置 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6234](https://redirect.github.com/web-infra-dev/modern.js/pull/6234)
- feat: 优化生成器日志信息 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6240](https://redirect.github.com/web-infra-dev/modern.js/pull/6240)
- feat: 支持 组件, 仅在 ssr.mode 为 'string'的时候生效 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6264](https://redirect.github.com/web-infra-dev/modern.js/pull/6264)
##### Bug 修复 🐞
- fix(runtime): 修复 windows 下 alias 的问题 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6233](https://redirect.github.com/web-infra-dev/modern.js/pull/6233)
- fix(module-tools): 区分 sass 与 scss 语法 由 [@fi3ework](https://redirect.github.com/fi3ework) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6267](https://redirect.github.com/web-infra-dev/modern.js/pull/6267)
- fix(runtime): [@meta/runtime](https://redirect.github.com/meta/runtime) 别名应该被正确地配置 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6230](https://redirect.github.com/web-infra-dev/modern.js/pull/6230)
##### 文档更新 📄
- docs: 在「概念」中添加 web server 的文档 由 [@zllkjc](https://redirect.github.com/zllkjc) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6231](https://redirect.github.com/web-infra-dev/modern.js/pull/6231)
### [`v2.60.1`](https://redirect.github.com/web-infra-dev/modern.js/releases/tag/v2.60.1)
[Compare Source](https://redirect.github.com/web-infra-dev/modern.js/compare/v2.60.0...v2.60.1)
#### What's Changed
##### New Features 🎉
- feat: support config dev.liveReload in [https://github.com/web-infra-dev/modern.js/pull/5673](https://redirect.github.com/web-infra-dev/modern.js/pull/5673)
- feat: remove [@modern-js/plugin-lint](https://redirect.github.com/modern-js/plugin-lint) plugin by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6216](https://redirect.github.com/web-infra-dev/modern.js/pull/6216)
##### Bug Fixes 🐞
- fix(server): should not include tsconfig.json by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6226](https://redirect.github.com/web-infra-dev/modern.js/pull/6226)
- fix: html minify error when tools.htmlPlugin false by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6225](https://redirect.github.com/web-infra-dev/modern.js/pull/6225)
- fix: the problem of NoSSR with Suspense by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6221](https://redirect.github.com/web-infra-dev/modern.js/pull/6221)
- fix: router plugin baseUrl not work by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6220](https://redirect.github.com/web-infra-dev/modern.js/pull/6220)
##### Docs update 📄
- docs: add some deprecated warning in model docs and hidden generator docs by [@zllkjc](https://redirect.github.com/zllkjc) in [https://github.com/web-infra-dev/modern.js/pull/6227](https://redirect.github.com/web-infra-dev/modern.js/pull/6227)
- docs: refactor builder config doc by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6182](https://redirect.github.com/web-infra-dev/modern.js/pull/6182)
#### 更新内容
##### 新特性 🎉
- feat: 移除 [@modern-js/plugin-lint](https://redirect.github.com/modern-js/plugin-lint) 插件 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6216](https://redirect.github.com/web-infra-dev/modern.js/pull/6216)
##### Bug 修复 🐞
- fix(server): 不应该包含 tsconfig.json 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6226](https://redirect.github.com/web-infra-dev/modern.js/pull/6226)
- fix: 修复 NoSSR 在 suspense 下 的问题 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6221](https://redirect.github.com/web-infra-dev/modern.js/pull/6221)
- fix: router 插件 baseUrl 不生效 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6220](https://redirect.github.com/web-infra-dev/modern.js/pull/6220)
##### 文档更新 📄
- docs: 添加 Reduck 文档的废弃警告,隐藏的 generator 文档 由 [@zllkjc](https://redirect.github.com/zllkjc) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6227](https://redirect.github.com/web-infra-dev/modern.js/pull/6227)
- docs: 重构 builder 配置文档 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6182](https://redirect.github.com/web-infra-dev/modern.js/pull/6182)
### [`v2.60.0`](https://redirect.github.com/web-infra-dev/modern.js/releases/tag/v2.60.0)
[Compare Source](https://redirect.github.com/web-infra-dev/modern.js/compare/v2.59.0...v2.60.0)
#### What's Changed
##### New Features 🎉
- feat: generator update json add endWithNewLine params by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6189](https://redirect.github.com/web-infra-dev/modern.js/pull/6189)
- feat: bump Rsbuild 1.0.x stable by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6202](https://redirect.github.com/web-infra-dev/modern.js/pull/6202)
- feat: remove eslint config package by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6191](https://redirect.github.com/web-infra-dev/modern.js/pull/6191)
- feat: add warn when transformLodash and transformImport for lodash library both exist by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6176](https://redirect.github.com/web-infra-dev/modern.js/pull/6176)
- feat: generator template use biome for code lint by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6181](https://redirect.github.com/web-infra-dev/modern.js/pull/6181)
- feat: generator replace husky to simple git hook by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6180](https://redirect.github.com/web-infra-dev/modern.js/pull/6180)
##### Bug Fixes 🐞
- fix: we should not cache the html, if we can match the html is downgrading. by [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) in [https://github.com/web-infra-dev/modern.js/pull/6179](https://redirect.github.com/web-infra-dev/modern.js/pull/6179)
- fix(cli): correct process exit code by [@chenjiahan](https://redirect.github.com/chenjiahan) in [https://github.com/web-infra-dev/modern.js/pull/6207](https://redirect.github.com/web-infra-dev/modern.js/pull/6207)
- fix: react's hook useId cause ssr hydrate failed by [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) in [https://github.com/web-infra-dev/modern.js/pull/6192](https://redirect.github.com/web-infra-dev/modern.js/pull/6192)
- fix: custom entry path in windows when use garfish plugin by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6205](https://redirect.github.com/web-infra-dev/modern.js/pull/6205)
##### Docs update 📄
- docs: add deprecate eslint rules package doc by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6209](https://redirect.github.com/web-infra-dev/modern.js/pull/6209)
##### Other Changes
- chore: rename serviceWorker environment name to workerSSR by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6210](https://redirect.github.com/web-infra-dev/modern.js/pull/6210)
- refactor(main-doc): improve bff docs by [@zllkjc](https://redirect.github.com/zllkjc) in [https://github.com/web-infra-dev/modern.js/pull/6186](https://redirect.github.com/web-infra-dev/modern.js/pull/6186)
#### 更新内容
##### 新特性 🎉
- feat: 生成器更新 json 文件增加 endWithNewLine 参数 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6189](https://redirect.github.com/web-infra-dev/modern.js/pull/6189)
- feat: 移除 eslint 配置包 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6191](https://redirect.github.com/web-infra-dev/modern.js/pull/6191)
- feat: 同时使用 source.transformImport 和 performance.transformLodash 优化 lodash 导入时添加警告信息 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6176](https://redirect.github.com/web-infra-dev/modern.js/pull/6176)
- feat: 生成器模板使用 biome 进行代码 lint 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6181](https://redirect.github.com/web-infra-dev/modern.js/pull/6181)
- feat: 生成器模板替换 husky 为 simple-git-hook 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6180](https://redirect.github.com/web-infra-dev/modern.js/pull/6180)
##### Bug 修复 🐞
- fix: 在 ssr 降级时,我们不应该缓存 html 由 [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6179](https://redirect.github.com/web-infra-dev/modern.js/pull/6179)
- fix(cli): 修正 process exit code 由 [@chenjiahan](https://redirect.github.com/chenjiahan) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6207](https://redirect.github.com/web-infra-dev/modern.js/pull/6207)
- fix: react's hook useId 导致 ssr hydrate 失败 由 [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6192](https://redirect.github.com/web-infra-dev/modern.js/pull/6192)
- fix: 修复在 windows 下使用 garfish 插件时自定义入口路径 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6205](https://redirect.github.com/web-infra-dev/modern.js/pull/6205)
##### 文档更新 📄
- docs: 添加下线 eslint 规则包文档 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6209](https://redirect.github.com/web-infra-dev/modern.js/pull/6209)
##### 其他变更
- refactor(main-doc): 优化 BFF 文档 由 [@zllkjc](https://redirect.github.com/zllkjc) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6186](https://redirect.github.com/web-infra-dev/modern.js/pull/6186)
### [`v2.59.0`](https://redirect.github.com/web-infra-dev/modern.js/releases/tag/v2.59.0)
[Compare Source](https://redirect.github.com/web-infra-dev/modern.js/compare/v2.58.3...v2.59.0)
##### What's Changed
##### New Features 🎉
- feat: support for security.sri when using Rspack by [@chenjiahan](https://redirect.github.com/chenjiahan) in [https://github.com/web-infra-dev/modern.js/pull/6157](https://redirect.github.com/web-infra-dev/modern.js/pull/6157)
- feat(deps): bump Rsbuild 1.0.1-rc.3 by [@chenjiahan](https://redirect.github.com/chenjiahan) in [https://github.com/web-infra-dev/modern.js/pull/6171](https://redirect.github.com/web-infra-dev/modern.js/pull/6171)
- feat: add WithRouterProps params type by [@zxs-1024](https://redirect.github.com/zxs-1024) in [https://github.com/web-infra-dev/modern.js/pull/6172](https://redirect.github.com/web-infra-dev/modern.js/pull/6172)
- feat: bump Rsbuild 1.0-rc & Rspack 1.0.0 by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6142](https://redirect.github.com/web-infra-dev/modern.js/pull/6142)
- feat: mark rspack as stable and support enabling rspack build via `bundler:'rspack'` by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6167](https://redirect.github.com/web-infra-dev/modern.js/pull/6167)
- feat: enable Rspack by default in new project by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6167](https://redirect.github.com/web-infra-dev/modern.js/pull/6167)
##### Bug Fixes 🐞
- fix: typo and type for internalDirectory in server appContext by [@zllkjc](https://redirect.github.com/zllkjc) in [https://github.com/web-infra-dev/modern.js/pull/6160](https://redirect.github.com/web-infra-dev/modern.js/pull/6160)
- fix: app-tools import createServer.js to fix errors during HMR by [@keepview](https://redirect.github.com/keepview) in [https://github.com/web-infra-dev/modern.js/pull/6169](https://redirect.github.com/web-infra-dev/modern.js/pull/6169)
- fix: move parse window ssr data to createRoot by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6146](https://redirect.github.com/web-infra-dev/modern.js/pull/6146)
- fix: node polyfill globals.js should use correct import order by [@Timeless0911](https://redirect.github.com/Timeless0911) in [https://github.com/web-infra-dev/modern.js/pull/6159](https://redirect.github.com/web-infra-dev/modern.js/pull/6159)
- fix: we should run runner.fallback when ssr fallback by [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) in [https://github.com/web-infra-dev/modern.js/pull/6151](https://redirect.github.com/web-infra-dev/modern.js/pull/6151)
- fix: server-core should not be import node api by [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) in [https://github.com/web-infra-dev/modern.js/pull/6152](https://redirect.github.com/web-infra-dev/modern.js/pull/6152)
- fix: entry detection not work when `src/xx/index.tsx` export a default function by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6145](https://redirect.github.com/web-infra-dev/modern.js/pull/6145)
- fix: remove lib-lodash from experience chunks by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6150](https://redirect.github.com/web-infra-dev/modern.js/pull/6150)
- fix: serviceWorker default config by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6143](https://redirect.github.com/web-infra-dev/modern.js/pull/6143)
- fix: dev.setupMiddlewares not work by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6166](https://redirect.github.com/web-infra-dev/modern.js/pull/6166)
##### Docs update 📄
- docs: update Rspack precautions by [@chenjiahan](https://redirect.github.com/chenjiahan) in [https://github.com/web-infra-dev/modern.js/pull/6156](https://redirect.github.com/web-infra-dev/modern.js/pull/6156)
##### Other Changes
- chore: refeactor structure for basic features docs by [@zllkjc](https://redirect.github.com/zllkjc) in [https://github.com/web-infra-dev/modern.js/pull/6144](https://redirect.github.com/web-infra-dev/modern.js/pull/6144)
- chore(deps): bump Rsbuild 1.0.1-rc.4 by [@chenjiahan](https://redirect.github.com/chenjiahan) in [https://github.com/web-infra-dev/modern.js/pull/6174](https://redirect.github.com/web-infra-dev/modern.js/pull/6174)
- refactor: improve framework routes,data-solutions,render docs by [@zllkjc](https://redirect.github.com/zllkjc) in [https://github.com/web-infra-dev/modern.js/pull/6126](https://redirect.github.com/web-infra-dev/modern.js/pull/6126)
##### 更新内容
##### 新特性 🎉
- feat: 标记 rspack 功能稳定,支持通过 `bundler:'rspack'` 开启 rspack 构建 由 [@9aoy](https://redirect.github.com/9aoy) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6167](https://redirect.github.com/web-infra-dev/modern.js/pull/6167)
##### Bug 修复 🐞
- fix: 修复 internalDirectory 在 server appContext 中的类型错误 由 [@zllkjc](https://redirect.github.com/zllkjc) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6160](https://redirect.github.com/web-infra-dev/modern.js/pull/6160)
- fix: 移动解析 window ssr data 到 createRoot 方法 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6146](https://redirect.github.com/web-infra-dev/modern.js/pull/6146)
- fix: node polyfill 插件需要使用正确的引入顺序 由 [@Timeless0911](https://redirect.github.com/Timeless0911) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6159](https://redirect.github.com/web-infra-dev/modern.js/pull/6159)
- fix: 我们应该在 ssr 降级时运行 runn.fallback 由 [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6151](https://redirect.github.com/web-infra-dev/modern.js/pull/6151)
- fix: server-core 不应该被引入 node api 由 [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6152](https://redirect.github.com/web-infra-dev/modern.js/pull/6152)
- fix: 修复当存在 `src/xx/index.tsx` 并导出一个默认函数时,entry 检测不生效的问题 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6145](https://redirect.github.com/web-infra-dev/modern.js/pull/6145)
- fix: 修复 dev.setupMiddlewares 不生效的问题 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6166](https://redirect.github.com/web-infra-dev/modern.js/pull/6166)
##### 其他变更
- chore: 重构基础用法文档结构 由 [@zllkjc](https://redirect.github.com/zllkjc) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6144](https://redirect.github.com/web-infra-dev/modern.js/pull/6144)
- refactor: 优化框架的路由、数据解决方案、渲染文档 由 [@zllkjc](https://redirect.github.com/zllkjc) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6126](https://redirect.github.com/web-infra-dev/modern.js/pull/6126)
### [`v2.58.3`](https://redirect.github.com/web-infra-dev/modern.js/releases/tag/v2.58.3)
[Compare Source](https://redirect.github.com/web-infra-dev/modern.js/compare/v2.58.2...v2.58.3)
##### What's Changed
##### Bug Fixes 🐞
- fix: should remove extensions for entry file in real entry file, cause developer may use \[.server] for ssr bundle entry by [@zllkjc](https://redirect.github.com/zllkjc) in [https://github.com/web-infra-dev/modern.js/pull/6116](https://redirect.github.com/web-infra-dev/modern.js/pull/6116)
- fix: custom server hook context request.path should carray query str by [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) in [https://github.com/web-infra-dev/modern.js/pull/6127](https://redirect.github.com/web-infra-dev/modern.js/pull/6127)
- fix: remove ssr.preload config by [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) in [https://github.com/web-infra-dev/modern.js/pull/6062](https://redirect.github.com/web-infra-dev/modern.js/pull/6062)
- fix(data-loader): compatible with asyncEntry for data loader by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6131](https://redirect.github.com/web-infra-dev/modern.js/pull/6131)
- fix: modern-entry build rules not use array by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6120](https://redirect.github.com/web-infra-dev/modern.js/pull/6120)
- fix(server): if res was piped, res should be treated as sent by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6123](https://redirect.github.com/web-infra-dev/modern.js/pull/6123)
- fix(runtime): status code should be controlled by data loader by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6122](https://redirect.github.com/web-infra-dev/modern.js/pull/6122)
- fix: filter entries by ssr or ssg should not apply the sigle entry by [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) in [https://github.com/web-infra-dev/modern.js/pull/6134](https://redirect.github.com/web-infra-dev/modern.js/pull/6134)
##### Other Changes
- chore: add internal directory to server plugin context by [@zllkjc](https://redirect.github.com/zllkjc) in [https://github.com/web-infra-dev/modern.js/pull/6108](https://redirect.github.com/web-infra-dev/modern.js/pull/6108)
##### 更新内容
##### Bug 修复 🐞
- fix: 需要移除入口文件的扩展名,因为开发者可能使用 \[.server] 作为 ssr 产物的入口文件 由 [@zllkjc](https://redirect.github.com/zllkjc) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6116](https://redirect.github.com/web-infra-dev/modern.js/pull/6116)
- fix: custom server hook context request.path 应该带上 query 字符串 由 [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6127](https://redirect.github.com/web-infra-dev/modern.js/pull/6127)
- fix: 移除 ssr.preload 配置 由 [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6062](https://redirect.github.com/web-infra-dev/modern.js/pull/6062)
- fix(data-loader): data loader 的导出兼容 asyncEntry 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6131](https://redirect.github.com/web-infra-dev/modern.js/pull/6131)
- fix: modern-entry 构建规则不使用数组 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6120](https://redirect.github.com/web-infra-dev/modern.js/pull/6120)
- fix(server): 如果响应被 pipe,响应应该被当作已经发送 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6123](https://redirect.github.com/web-infra-dev/modern.js/pull/6123)
- fix(runtime): 状态码应该能被 data loader 控制 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6122](https://redirect.github.com/web-infra-dev/modern.js/pull/6122)
- fix: 筛选入口不应该应用于单入口情况 由 [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6134](https://redirect.github.com/web-infra-dev/modern.js/pull/6134)
##### 其他变更
- chore: 在 server 插件上下文中增加 internal 目录 由 [@zllkjc](https://redirect.github.com/zllkjc) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6108](https://redirect.github.com/web-infra-dev/modern.js/pull/6108)
### [`v2.58.2`](https://redirect.github.com/web-infra-dev/modern.js/releases/tag/v2.58.2)
[Compare Source](https://redirect.github.com/web-infra-dev/modern.js/compare/v2.58.1...v2.58.2)
##### What's Changed
##### New Features 🎉
- feat: update codesmith version by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6104](https://redirect.github.com/web-infra-dev/modern.js/pull/6104)
- feat(server): support esm by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6028](https://redirect.github.com/web-infra-dev/modern.js/pull/6028)
##### Bug Fixes 🐞
- fix: we should inject ssrData & window's data when ssr failed, by [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) in [https://github.com/web-infra-dev/modern.js/pull/6082](https://redirect.github.com/web-infra-dev/modern.js/pull/6082)
- fix: custom server route rewrite should carry honoContext.env by [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) in [https://github.com/web-infra-dev/modern.js/pull/6109](https://redirect.github.com/web-infra-dev/modern.js/pull/6109)
- fix: fix compatibleRequire problem on windows by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6103](https://redirect.github.com/web-infra-dev/modern.js/pull/6103)
- fix: add sideEffect rules for `.modern-js` dir by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6097](https://redirect.github.com/web-infra-dev/modern.js/pull/6097)
- fix(plugin-swc): function config not works by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6084](https://redirect.github.com/web-infra-dev/modern.js/pull/6084)
##### 更新内容
##### 新特性 🎉
- feat: 更新 codesmith 版本 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6104](https://redirect.github.com/web-infra-dev/modern.js/pull/6104)
- feat(server): support esm 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6028](https://redirect.github.com/web-infra-dev/modern.js/pull/6028)
##### Bug 修复 🐞
- fix: 当 ssr 降级时,我们应该注入 ssrData 和 window's data 给 runtimeContext.ssrContext 由 [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6082](https://redirect.github.com/web-infra-dev/modern.js/pull/6082)
- fix: custom server 路由重写应该带上 honoContext.env 由 [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6109](https://redirect.github.com/web-infra-dev/modern.js/pull/6109)
- fix: 修复 windows 下 compatibleRequire 的问题 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6103](https://redirect.github.com/web-infra-dev/modern.js/pull/6103)
- fix: 对 `.modern-js` 目录添加 sideEffects 配置 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6097](https://redirect.github.com/web-infra-dev/modern.js/pull/6097)
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR contains the following updates:
2.58.1
->2.60.5
Release Notes
web-infra-dev/modern.js (@modern-js/tsconfig)
### [`v2.60.5`](https://redirect.github.com/web-infra-dev/modern.js/releases/tag/v2.60.5) [Compare Source](https://redirect.github.com/web-infra-dev/modern.js/compare/v2.60.4...v2.60.5) #### What's Changed ##### New Features 🎉 - feat(deps): bump html-webpack-plugin to support getCompilationHooks by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6402](https://redirect.github.com/web-infra-dev/modern.js/pull/6402) - feat: update [@types/node](https://redirect.github.com/types/node) version for template by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6418](https://redirect.github.com/web-infra-dev/modern.js/pull/6418) - feat: router plugin add beforeCreateRoutes hook by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6417](https://redirect.github.com/web-infra-dev/modern.js/pull/6417) - feat: generator upgrade tailwindcss version by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6423](https://redirect.github.com/web-infra-dev/modern.js/pull/6423) ##### Bug Fixes 🐞 - fix: upgrade command get modern version error by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6396](https://redirect.github.com/web-infra-dev/modern.js/pull/6396) - fix: upgrade tools prepare generator error by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6398](https://redirect.github.com/web-infra-dev/modern.js/pull/6398) - fix: when the enableCustomEntry is set to true, the `entry.tsx` should be recognized first. by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6420](https://redirect.github.com/web-infra-dev/modern.js/pull/6420) #### 更新内容 ##### 新特性 🎉 - feat: 更新生成器模板 [@types/node](https://redirect.github.com/types/node) 版本 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6418](https://redirect.github.com/web-infra-dev/modern.js/pull/6418) - feat: router 插件添加 beforeCreateRoutes 钩子 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6417](https://redirect.github.com/web-infra-dev/modern.js/pull/6417) - feat: 生成器升级 tailwindcss 版本 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6423](https://redirect.github.com/web-infra-dev/modern.js/pull/6423) ##### Bug 修复 🐞 - fix: 修复 upgrade 命令获取 modern 版本失败的问题 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6396](https://redirect.github.com/web-infra-dev/modern.js/pull/6396) - fix: 修复 upgrade 工具准备阶段生成器失败的问题 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6398](https://redirect.github.com/web-infra-dev/modern.js/pull/6398) - fix: 开启 enableCustomEntry 后, `entry.tsx` 入口应优先被识别 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6420](https://redirect.github.com/web-infra-dev/modern.js/pull/6420) ### [`v2.60.4`](https://redirect.github.com/web-infra-dev/modern.js/releases/tag/v2.60.4) [Compare Source](https://redirect.github.com/web-infra-dev/modern.js/compare/v2.60.3...v2.60.4) #### What's Changed ##### New Features 🎉 - feat: add `html.outputStructure` and doc by [@spencerHT](https://redirect.github.com/spencerHT) in [https://github.com/web-infra-dev/modern.js/pull/6375](https://redirect.github.com/web-infra-dev/modern.js/pull/6375) - feat(server): add catch logic for ssrCache container operation by [@targeral](https://redirect.github.com/targeral) in [https://github.com/web-infra-dev/modern.js/pull/6390](https://redirect.github.com/web-infra-dev/modern.js/pull/6390) - feat: optimize generator download by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6377](https://redirect.github.com/web-infra-dev/modern.js/pull/6377) - feat: config/public directory ignore .gitkeep file by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6394](https://redirect.github.com/web-infra-dev/modern.js/pull/6394) ##### Bug Fixes 🐞 - fix(bff): should register esbuild for js projects by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6379](https://redirect.github.com/web-infra-dev/modern.js/pull/6379) - fix: remove node_modules in watcher ignored list by [@zllkjc](https://redirect.github.com/zllkjc) in [https://github.com/web-infra-dev/modern.js/pull/6381](https://redirect.github.com/web-infra-dev/modern.js/pull/6381) - fix(bff): zodError causing 500 error due to inconsistent zod versions by [@keepview](https://redirect.github.com/keepview) in [https://github.com/web-infra-dev/modern.js/pull/6384](https://redirect.github.com/web-infra-dev/modern.js/pull/6384) - fix: `output.sourcemap` not work by [@SoonIter](https://redirect.github.com/SoonIter) in [https://github.com/web-infra-dev/modern.js/pull/6342](https://redirect.github.com/web-infra-dev/modern.js/pull/6342) - fix: remove ssg stdout listener, only stderr by [@zllkjc](https://redirect.github.com/zllkjc) in [https://github.com/web-infra-dev/modern.js/pull/6387](https://redirect.github.com/web-infra-dev/modern.js/pull/6387) - fix(server): should get context from unstable middleware correctly by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6391](https://redirect.github.com/web-infra-dev/modern.js/pull/6391) - fix: upgrade react-router & log in debug mode only by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6388](https://redirect.github.com/web-infra-dev/modern.js/pull/6388) - fix: should include files other than tsconfg.json by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6343](https://redirect.github.com/web-infra-dev/modern.js/pull/6343) - fix(ssr): we match all asset directly, it can be more faster by [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) in [https://github.com/web-infra-dev/modern.js/pull/6386](https://redirect.github.com/web-infra-dev/modern.js/pull/6386) #### 更新内容 ##### 新特性 🎉 - feat: 展示 `html.outputStructure` 并添加文档 由 [@spencerHT](https://redirect.github.com/spencerHT) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6375](https://redirect.github.com/web-infra-dev/modern.js/pull/6375) - feat(server): 为 ssr 缓存容器操作添加错误捕获逻辑 由 [@targeral](https://redirect.github.com/targeral) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6390](https://redirect.github.com/web-infra-dev/modern.js/pull/6390) - feat: 优化生成器下载 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6377](https://redirect.github.com/web-infra-dev/modern.js/pull/6377) - feat: config/public 目录忽略 .gitkeep 文件 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6394](https://redirect.github.com/web-infra-dev/modern.js/pull/6394) ##### Bug 修复 🐞 - fix(bff): 应该为 js 项目注册 esbuild 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6379](https://redirect.github.com/web-infra-dev/modern.js/pull/6379) - fix: 移除 watcher 忽略列表中的 node_modules 由 [@zllkjc](https://redirect.github.com/zllkjc) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6381](https://redirect.github.com/web-infra-dev/modern.js/pull/6381) - fix(bff): 修复由于 zod 版本不一致导致的 zodError 触发的 500 错误 由 [@keepview](https://redirect.github.com/keepview) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6384](https://redirect.github.com/web-infra-dev/modern.js/pull/6384) - fix: `output.sourcemap` 不生效 由 [@SoonIter](https://redirect.github.com/SoonIter) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6342](https://redirect.github.com/web-infra-dev/modern.js/pull/6342) - fix: 移除 ssg 的 stdout 监听,只保留 stderr 由 [@zllkjc](https://redirect.github.com/zllkjc) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6387](https://redirect.github.com/web-infra-dev/modern.js/pull/6387) - fix(server): 应该正确地获取到 loaderContext 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6391](https://redirect.github.com/web-infra-dev/modern.js/pull/6391) - fix: 更新 react-router 到最新版 & 只在 debug 模式下打印日志 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6388](https://redirect.github.com/web-infra-dev/modern.js/pull/6388) - fix: 应该包含除了 tsconfig.json 以外的文件 由 [@caohuilin](https://redirect.github.com/caohuilin) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6343](https://redirect.github.com/web-infra-dev/modern.js/pull/6343) - fix(ssr): 我们一次性匹配出所有资源,这样性能更快 由 [@GiveMe-A-Name](https://redirect.github.com/GiveMe-A-Name) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6386](https://redirect.github.com/web-infra-dev/modern.js/pull/6386) ### [`v2.60.3`](https://redirect.github.com/web-infra-dev/modern.js/releases/tag/v2.60.3) [Compare Source](https://redirect.github.com/web-infra-dev/modern.js/compare/v2.60.2...v2.60.3) #### What's Changed ##### New Features 🎉 - feat(deps): unpin Rsbuild patch version by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6286](https://redirect.github.com/web-infra-dev/modern.js/pull/6286) - feat: support dev.watchFiles reload-server option by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6336](https://redirect.github.com/web-infra-dev/modern.js/pull/6336) - feat(module-plugin-polyfill): support polyfill Node.js builtin modules starting with node: by [@Timeless0911](https://redirect.github.com/Timeless0911) in [https://github.com/web-infra-dev/modern.js/pull/6315](https://redirect.github.com/web-infra-dev/modern.js/pull/6315) - feat(deps): bump rsbuild 1.0.11 by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6338](https://redirect.github.com/web-infra-dev/modern.js/pull/6338) ##### Bug Fixes 🐞 - fix: copy configuration should only works in main(web) environment by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6340](https://redirect.github.com/web-infra-dev/modern.js/pull/6340) - fix: should load ts-node from project by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6341](https://redirect.github.com/web-infra-dev/modern.js/pull/6341) ##### Docs update 📄 - docs: link `output.copy` to Rsbuild by [@chenjiahan](https://redirect.github.com/chenjiahan) in [https://github.com/web-infra-dev/modern.js/pull/6337](https://redirect.github.com/web-infra-dev/modern.js/pull/6337) ##### Other Changes - chore(server): add `compiler` option for `createDevServer` by [@await-ovo](https://redirect.github.com/await-ovo) in [https://github.com/web-infra-dev/modern.js/pull/6287](https://redirect.github.com/web-infra-dev/modern.js/pull/6287) #### 更新内容 ##### 新特性 🎉 - feat(module-plugin-polyfill): 支持对 node: 开头的 Node.js builtin modules 进行 polyfill 由 [@Timeless0911](https://redirect.github.com/Timeless0911) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6315](https://redirect.github.com/web-infra-dev/modern.js/pull/6315) ##### Bug 修复 🐞 - fix: 应该从项目中加载 ts-node 由 [@yimingjfe](https://redirect.github.com/yimingjfe) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6341](https://redirect.github.com/web-infra-dev/modern.js/pull/6341) ##### 其他变更 - chore(server): 为 `createDevServer` 添加 `compiler` 选项 由 [@await-ovo](https://redirect.github.com/await-ovo) 实现, 详情可查看 [https://github.com/web-infra-dev/modern.js/pull/6287](https://redirect.github.com/web-infra-dev/modern.js/pull/6287) ### [`v2.60.2`](https://redirect.github.com/web-infra-dev/modern.js/releases/tag/v2.60.2) [Compare Source](https://redirect.github.com/web-infra-dev/modern.js/compare/v2.60.1...v2.60.2) #### What's Changed ##### New Features 🎉 - feat(deps): bump rsbuild 1.0.6 & rspack 1.0.7 by [@9aoy](https://redirect.github.com/9aoy) in [https://github.com/web-infra-dev/modern.js/pull/6262](https://redirect.github.com/web-infra-dev/modern.js/pull/6262) - feat: add timing log for mwa and module generator to get solution version by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6259](https://redirect.github.com/web-infra-dev/modern.js/pull/6259) - feat: create tools support --time option by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6240](https://redirect.github.com/web-infra-dev/modern.js/pull/6240) - feat(router): router plugin should use the App Component from other plugins & export the markRoutes method by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6228](https://redirect.github.com/web-infra-dev/modern.js/pull/6228) - feat(deploy): support server plugin options for deploy by [@yimingjfe](https://redirect.github.com/yimingjfe) in [https://github.com/web-infra-dev/modern.js/pull/6234](https://redirect.github.com/web-infra-dev/modern.js/pull/6234) - feat(deps): bump Rsbuild v1.0.7 by [@chenjiahan](https://redirect.github.com/chenjiahan) in [https://github.com/web-infra-dev/modern.js/pull/6270](https://redirect.github.com/web-infra-dev/modern.js/pull/6270) - feat: Optimize generator log information by [@caohuilin](https://redirect.github.com/caohuilin) in [https://github.com/web-infra-dev/modern.js/pull/6240](https://redirect.github.com/web-infra-dev/modern.js/pull/6240) - feat: supportConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.