Releases: web-infra-dev/modern.js
Releases · web-infra-dev/modern.js
v2.46.0
What's Changed
Performance Improvements ⚡
- perf(module-tools): skip build js and d.ts when input is empty by @10Derozan in #5226
- perf(module-tools): log error detail which may throw by own plugin and complete error stack by @10Derozan in #5230
New Features 🎉
- feat: server template support edge case by @spencerHT in #5202
- feat: set default vue hydration mismatch flag by @tmkx in #5185
- feat: Waiting for all content to load for spiders in streaming ssr by @GiveMe-A-Name in #5186
- feat: use rsbuild(uni-builder) instead of modern.js builder by @9aoy in #5168
- feat: bump Rsbuild 0.3.3 and Rspack 0.5.0 by @9aoy in #5244
- feat(uni-builder): support passing source build options by @chenjiahan in #5225
Bug Fixes 🐞
- fix(prod-server): ssr cache can't work in
serve
command by @GiveMe-A-Name in #5197 - fix(prod-server): isBot@4.x need nodev18, so we downgrade it to 3.x by @GiveMe-A-Name
- fix(runtime-utils): FileReader#reset didn't clear storage as expected by @xc2 in #5187
- fix(plugin-router-v5): move @modern-js/runtime-utils to dependencies by @KyrieLii in #5234
- fix(module-tools): remove function type in transformImport by @10Derozan in #5220
- fix: resolve warning 'Failed to resolve encoding' in node-fetch by @9aoy in #5238
- fix(uni-builder): make the plugins type looser to avoid type mismatch by @9aoy in #5216
Other Changes
- refactor: dataflow of devtools client by @Asuka109 in #5222
- chore(builder-related): add deprecated warning for builder related packages, please use rsbuild instead by @9aoy in #5204
- chore(module-tools): upgrade rollup and rollup-plugin-dts version by @10Derozan in #5199
- chore: remove tools.inspector api, please use rsdoctor instead by @9aoy in #5194
- chore(module-tools): prebundle svgr to reduce install size by @10Derozan in #5192
- chore(module-tools): add babel dep, because @svgr/plugin-jsx depended after prebundle by @10Derozan in #5211
- chore(module-tools): upgrade ast-grep 0.16.0 to support win32-arm64 by @10Derozan in #5190
- chore: explicitly declare Node version of babel target by @chenjiahan in #5200
更新内容
性能优化 ⚡
- perf(module-tools): 当没有入口时跳过构建 js 和 d.ts 文件 由 @10Derozan 实现, 详情可查看 #5226
- perf(module-tools): 补齐错误栈并且打印错误细节,因为这错误可能并不是 esbuild 抛出的,而是我们自己的插件抛出的 由 @10Derozan 实现, 详情可查看 #5230
新特性 🎉
- feat: 服务端模版方法支持 的边界case 由 @spencerHT 实现, 详情可查看 #5202
- feat: 设置默认 vue hydration mismatch flag 由 @tmkx 实现, 详情可查看 #5185
- feat: 在 streaming ssr 时,为爬虫等待所有内容加载完毕 由 @GiveMe-A-Name 实现, 详情可查看 #5186
- feat: 将应用工程的构建工具从 modern.js builder 切换为 rsbuild(uni-builder) 由 @9aoy 实现, 详情可查看 #5168
- feat: 升级 Rsbuild 0.3.3 和 Rspack 0.5.0 由 @9aoy 实现, 详情可查看 #5244
- feat(uni-builder): 支持传入 source build 配置项 由 @chenjiahan 实现, 详情可查看 #5225
Bug 修复 🐞
- fix(prod-server): ssr 缓存不能在
serve
指令中正常工作 由 @GiveMe-A-Name 实现, 详情可查看 #5197 - fix(prod-server): isBot@4.x 需要 nodev18, 所以我们降级到 3.x 由 @GiveMe-A-Name 实现
- fix(runtime-utils): FileReader#reset 没有按预期清除缓存的问题。 由 @xc2 实现, 详情可查看 #5187
- fix(plugin-router-v5): 移动 @modern-js/runtime-utils 到 dependencies 由 @KyrieLii 实现, 详情可查看 #5234
- fix(module-tools): 移除 transformImport 配置里的函数类型 由 @10Derozan 实现, 详情可查看 #5220
- fix: 修复在使用 node-fetch 时的 'Failed to resolve encoding' resolve warning 由 @9aoy 实现, 详情可查看 #5238
- fix(uni-builder): 使用更松散的 plugins 类型来避免 type 不匹配的问题 由 @9aoy 实现, 详情可查看 #5216
其他变更
- refactor: 重构 devtools 客户端数据流 由 @Asuka109 实现, 详情可查看 #5222
- chore(builder-related): 为 builder 相关包添加废弃声明,推荐使用 rsbuild 代替 由 @9aoy 实现, 详情可查看 #5204
- chore(module-tools): 更新 rollup 和 rollup-plugin-dts 版本 由 @10Derozan 实现, 详情可查看 #5199
- chore: 移除 tools.inspector api, 可使用 rsdoctor 代替 由 @9aoy 实现, 详情可查看 #5194
- chore(module-tools): 预打包 svgr 以减小安装体积 由 @10Derozan 实现, 详情可查看 #5192
- chore(module-tools): 新增 babel 依赖,因为预打包后的 @svgr/plugin-jsx 需要这些依赖 由 @10Derozan 实现, 详情可查看 #5211
- chore: 显式声明 babel 的目标 Node 版本 由 @chenjiahan 实现, 详情可查看 #5200
v2.45.0
What's Changed
New Features 🎉
- feat: support ssr.scriptLoading set
async
in #5177
Bug Fixes 🐞
- fix: adjust logger code in #5150
- fix(integration-tests): add missing dependencies in #5166
- fix: when splitRouteChunks is false, dont use loadable to load components in #5169
- fix: add missing babel types in #5183
Other Changes
- chore(deps): bump rsbuild to 0.2.15 in #5178
更新内容
新特性 🎉
- feat: 支持 ssr.scriptLoading 设置为
async
, 详情可查看 #5177
Bug 修复 🐞
- fix: 调整 logger 冗余代码, 详情可查看 #5150
- fix(integration-tests): 添加缺失依赖, 详情可查看 #5166
- fix: 当 splitRouteChunks 为 false,不使用 loadable 加载组件, 详情可查看 #5169
- fix: 添加缺失 babel 类型, 详情可查看 #5183
其他变更
- chore(deps): 升级 rsbuild 到 0.2.15, 详情可查看 #5178
v2.44.0
What's Changed
New Features 🎉
- feat(generator-plugin):
addManyFiles
supports config to include dotfiles by @zhmushan - feat(module-tools): add enableTscBuild option, only log error about config and prefer to use declarationDir over outDir when tsc build. by @10Derozan in #5135
- feat(module-tools): support svgr with url-loader by @10Derozan in #5108
- feat: SSR server support afterStreamingRender by @spencerHT in #5101
Bug Fixes 🐞
- fix(ssr): support stream ssr inline asserts by @GiveMe-A-Name in #5146
- fix: SSR cache container spell by @spencerHT in #5149
- fix: server dir compile only server/cache exsits by @GiveMe-A-Name in #5159
- fix(module-tools): When dealing with dts file alias, explicitly declare the extension when calling matchPath to avoid the problem of not being able to find the module. by @10Derozan in #5142
- fix(devtools): failed to resolve react-devtools-inline by @Asuka109 in #5163
- fix(storybook): resolve react renderer from package by @JSerFeng in #5162
- fix(hmr-client): make hmr-client isomorphic by @tmkx in #5148
- fix(transform-import): remove SharedTransformImport config by @JSerFeng in #5165
Other Changes
- chore(module-tools): bump SVGR to v8.1.0 by @chenjiahan in #5147
- chore(generator): update vscode settings template by @10Derozan in #5138
- chore(deps): bump rspack to 0.4.5 and bump rsbuild to 0.2.11 by @9aoy in #5157
- chore(deps): bump rsbuild to 0.2.8 and use html-webpack-plugin in uni-builder webpack mode by @9aoy in #5134
更新内容
新特性 🎉
- feat(generator-plugin):
addManyFiles
支持配置允许包含 dotfiles 由 @zhmushan 实现 - feat(module-tools): 新增 enableTscBuild option, 并且在 tsc build 时对于配置错误仅进行控制台输出,同时优先于 outDir 使用 declarationDir 由 @10Derozan 实现, 详情可查看 #5135
- feat(module-tools): 支持 svgr 与 url-loader 一起使用 由 @10Derozan 实现, 详情可查看 #5108
- feat: SSR 服务端支持 afterStreamingRender 由 @spencerHT 实现, 详情可查看 #5101
Bug 修复 🐞
- fix(ssr): 支持 stream ssr 内链静态文件 由 @GiveMe-A-Name 实现, 详情可查看 #5146
- fix: SSR 缓存相关 container 拼写修正 由 @spencerHT 实现, 详情可查看 #5149
- fix: 只有存在 server/cache 才默认编译 由 @GiveMe-A-Name 实现, 详情可查看 #5159
- fix(module-tools): 处理类型描述文件别名过程中,在调用 matchPath 时显式声明后缀名,避免无法找到模块的问题 由 @10Derozan 实现, 详情可查看 #5142
- fix(devtools): react-devtools-inline 包不存在导致报错 由 @Asuka109 实现, 详情可查看 #5163
- fix(storybook): 使用包内部的 react renderer 由 @JSerFeng 实现, 详情可查看 #5162
- fix(hmr-client): hmr-client 支持跨环境 由 @tmkx 实现, 详情可查看 #5148
- fix(transform-import): 移除 SharedTransformImport 配置 由 @JSerFeng 实现, 详情可查看 #5165
其他变更
- chore(module-tools): 升级 SVGR 到 v8.1.0 由 @chenjiahan 实现, 详情可查看 #5147
- chore(generator): 更新项目里 vscode 设置的模板 由 @10Derozan 实现, 详情可查看 #5138
- chore(deps): 升级 rspack 到 0.4.5 & 升级 rsbuild 到 0.2.11 由 @9aoy 实现, 详情可查看 #5157
- chore(deps): 升级 rsbuild 到 0.2.8,在 uni-builder webpack 模式下使用 html-webpack-plugin 由 @9aoy 实现, 详情可查看 #5134
v2.43.0
What's Changed
New Features 🎉
- feat(uni-builder): add unified builder for Modern.js by @9aoy in #5092
- feat: support ssr cache, and global storer by @GiveMe-A-Name in #5048
- feat(server): Integrate Rsbuild Server capabilities into Modern.js Server by @9aoy in #5061
- feat(uni-builder): integrate modern server into startDevServer by @9aoy in #5104
- feat: support ssr pass more context by @GiveMe-A-Name in #5032
- feat: enhance plugin docs by @zllkjc in #5095
Bug Fixes 🐞
- fix: rspack 0.4.4 plugin & rule type error by @9aoy in #5123
- fix: adapte webpack-dev-middleware disable write-to-disk by @GiveMe-A-Name in #5118
- fix(module-tools): add sourcemap output and remove the useless declaration file when autoExtension takes effect by @10Derozan in #5122
- fix: unsafeReplace fn fix by @GiveMe-A-Name in #5098
- fix: the Helment replace may meets special char by @GiveMe-A-Name in #5094
- fix(module-tools): fix logic error in remove dts task by @10Derozan in #5126
- fix(module-tools): clear .tsbuildinfo before build instead of tsc --clean by @10Derozan
- fix: whether it is react18 should not rely on internalDirectory by @yimingjfe
- fix: handle the quick navigation issue in ssr by @yimingjfe in #5129
Docs update 📄
Other Changes
- chore: bump rsbuild to 0.2.7 by @9aoy in #5107
- chore: bump rspack to 0.4.4 by @9aoy in #5130
- chore: bump swc by @JSerFeng in #5125
- chore(module-tools): simplify logic in rewrite css url by @10Derozan in #5086
- chore(server): remove useless server plugin hooks (beforeDevServer & afterDevServer) by @9aoy in #5099
- chore: remove Rsbuild unsupported CHAIN_ID by @9aoy in #5128
更新内容
新特性 🎉
- feat(uni-builder): 添加从原 modern.js builder 到 Rsbuild 的转换层 由 @9aoy 实现, 详情可查看 #5092
- feat: 支持 ssr 缓存, 以及全局存储器 由 @GiveMe-A-Name 实现, 详情可查看 #5048
- feat(server): 集成 Rsbuild Server 能力到 Modern.js Server 中 由 @9aoy 实现, 详情可查看 #5061
- feat(uni-builder): 将 modern server 集成到 startDevServer 中 由 @9aoy 实现, 详情可查看 #5104
- feat: 支持传递更多的 ssr context 由 @GiveMe-A-Name 实现, 详情可查看 #5032
- feat: 优化插件文档 由 @zllkjc 实现, 详情可查看 #5095
Bug 修复 🐞
- fix: 修复 rspack 0.4.4 plugin 和 rule 的类型问题 由 @9aoy 实现, 详情可查看 #5123
- fix: 适配 webpack-dev-middleware 禁止写入磁盘 由 @GiveMe-A-Name 实现, 详情可查看 #5118
- fix(module-tools): autoExtension 生效时,添加 sourcemap 输出并移除无用的类型描述文件 由 @10Derozan 实现, 详情可查看 #5122
- fix: unsafeReplace 函数修复, 处理找不到 searchValue 的边界 case 由 @GiveMe-A-Name 实现, 详情可查看 #5098
- fix: the Helment 替换可能会遇到特殊字符,导致替换出问题 由 @GiveMe-A-Name 实现, 详情可查看 #5094
- fix(module-tools): 修复删除 dts 任务的错误逻辑 由 @10Derozan 实现, 详情可查看 #5126
- fix(module-tools): 构建前清除 .tsbuildinfo 文件而不是调用 tsc --clean 由 @10Derozan 实现
- fix: 判断是不是 react18 不应该依赖内部目录 由 @yimingjfe 实现
- fix: 修复 ssr 场景下 quick navigation 的问题 由 @yimingjfe 实现, 详情可查看 #5129
文档更新 📄
其他变更
- chore: 升级 rsbuild 到 0.2.7 由 @9aoy 实现, 详情可查看 #5107
- chore: 升级 rspack 到 0.4.4 由 @9aoy 实现, 详情可查看 #5130
- chore: 升级 swc 由 @JSerFeng 实现, 详情可查看 #5125
- chore(module-tools): 简化更新 css url 的逻辑 由 @10Derozan 实现, 详情可查看 #5086
- chore(server): 移除无用的 server 插件钩子 (beforeDevServer 和 afterDevServer) 由 @9aoy 实现, 详情可查看 #5099
- chore: 移除在 Rsbuild 中不支持的 CHAIN_ID 由 @9aoy 实现, 详情可查看 #5128
v2.42.2
What's Changed
New Features 🎉
Bug Fixes 🐞
- fix: temp routes file should use alias intead of absolute path by @yimingjfe in #5065
- fix tips typo of testingPlugin, "testPlugin" -> "testingPlugin" by @SoonIter in #5056
- fix(plugin-swc): should not override extensions when using function config by @JSerFeng in #5087
- fix(storybook): use default conditionNames by @JSerFeng in #5067
- fix(module-tools):
dev --config <config>
does not work by @ulivz - fix(module-tools): Modify the configuration of isModule when converting umd products. by @targeral in #5053
- fix(module-tools): not execa tsc clean in js project by @10Derozan in #5071
- fix: if the second args of string.replace is a string, it would as RegExp. so we use function to replace by @GiveMe-A-Name in #5069
- fix(module-tools): use tsc --clean to clear the tsbuildinfo and d.ts files by @10Derozan
- fix(module-tools): improve ts references, not change the user tsconfig by @10Derozan in #5066
Docs update 📄
Other Changes
- chore: bump rspack to 0.4.3 by @9aoy in #5079
- types: proxy.context should allow function type by @9aoy in #5080
- chore: bump rsbuild to 0.2.3 by @9aoy in #5088
- chore(storybook-generator): adjust addDep version in template by @10Derozan in #5073
- chore: bump codesmith to 2.3.2 by @KyrieLii
- chore(module-tools): upgrade remapping version to 2.2.1 by @10Derozan in #5072
更新内容
新特性 🎉
Bug 修复 🐞
- fix: 临时路由文件应该使用 alias 代替路径 由 @yimingjfe 实现, 详情可查看 #5065
- fix(plugin-swc): 使用函数配置时不应该覆盖 extensions 由 @JSerFeng 实现, 详情可查看 #5087
- fix(storybook): 使用默认的 conditionNames 由 @JSerFeng 实现, 详情可查看 #5067
- fix(module-tools):
dev --config <config>
未生效 由 @ulivz 实现 - fix(module-tools): 修改转换 umd 产物过程中 isModule 的配置 由 @targeral 实现, 详情可查看 #5053
- fix(module-tools): 不在 js 项目执行 tsc clean 由 @10Derozan 实现, 详情可查看 #5071
- fix: 如果 string.replace 第二个参数是字符串,他若有特殊字符将会被当作正则处理,所以我们用函数去替换他 由 @GiveMe-A-Name 实现, 详情可查看 #5069
- fix(module-tools): 使用 "tsc --clean" 来清理生成的 tsbuildinfo 和类型描述文件 由 @10Derozan 实现
- fix(module-tools): 完善对于 ts references 的支持,不再改变用户的 tsconfig 由 @10Derozan 实现, 详情可查看 #5066
文档更新 📄
其他变更
- chore: rspack 版本升级到 0.4.3 由 @9aoy 实现, 详情可查看 #5079
- types: proxy.context 允许传入 function 由 @9aoy 实现, 详情可查看 #5080
- chore: 升级 rsbuild 到 0.2.3 由 @9aoy 实现, 详情可查看 #5088
- chore(storybook-generator): 调整模板里新增依赖的版本 由 @10Derozan 实现, 详情可查看 #5073
- chore: 升级 codesmith 版本到 2.3.2 由 @KyrieLii 实现
- chore(module-tools): 更新 remapping 版本至 2.2.1 由 @10Derozan 实现, 详情可查看 #5072
v2.42.1
What's Changed
Bug Fixes 🐞
- fix(module-tools): fix ts6369 by @10Derozan in #5050
- fix(testing): transform jsx failed when use React 18 by @chenjiahan in #5047
Docs update 📄
更新内容
Bug 修复 🐞
- fix(module-tools): 修复 ts6369 错误 由 @10Derozan 实现, 详情可查看 #5050
- fix(testing): 修复使用 React 18 时 JSX 编译错误的问题 由 @chenjiahan 实现, 详情可查看 #5047
v2.42.0
What's Changed
New Features 🎉
- feat(runtime-utils): split parsed from browser by @KyrieLii
- feat(prod-server): afterRender Hook context add route attributes by @GiveMe-A-Name in #4984
- feat(plugin-testing): support -u option to update snapshot by @chenjiahan in #5022
Bug Fixes 🐞
- fix(rspack-provider): react refresh not work in Micro front-end projects by @9aoy in #5023
- fix(builder): plugin-image-compress can not work with filename query by @fireairforce in #5007
- fix(plugin-runtime):
Document.tsx
should work fine when user confightml.title
orhtml.titleByEntries
by @fireairforce in #4961 - fix: avoid to duplicate register ts-node in dev by @yimingjfe in #5015
- fix(builder): should generate manifest correctly when enable SSR by @chenjiahan in #4990
- fix(storybook): storybook register extra addon babel plugins by @JSerFeng in #5005
- fix: update storybook doc file extension by @targeral in #5001
- fix(module-tools): d.ts.map invalid sources when bundleless by @10Derozan in #5027
- fix(builder): add crossOrigin attr for preload resource when origin resource is crossOrigin by @9aoy in #5004
- fix(builder): export type of rspack config and add globalObject type for rspack output by @Amour1688 in #5019
- fix: catch the error of import route module by @yimingjfe in #5031
- fix(generator): storybook v7 template lint error by @KyrieLii
- fix: add more ssr metrics logger by @GiveMe-A-Name in #5028
- fix(module-tools): add -b param to tsc when user add references to avoid error ts6305 by @10Derozan in #5013
- fix(worker-server): rslogger can't work in worker env. by @GiveMe-A-Name in #5014
- fix: bff-core should be a dependency of testing plugin by @yimingjfe in #5021
- fix: change storybook doc file extension by @targeral in #4998
- fix(builder): add missing lodash dependency by @chenjiahan in #5038
- fix(storybook): add raw query and .md rules in module.rules by @JSerFeng in #4986
Other Changes
- chore: bump codesmith v2.3.1 to show timing by @KyrieLii
- refactor(module-tools): use ast-grep to replace dts alias instead of babel by @10Derozan in #5044
- chore: use disableInlineRouteManifests instead of enableInlineRouteManifests by @yimingjfe in #5017
- chore: bump rspack version to 0.4.2 by @9aoy in #5041
- chore: replace @rspack/dev-client with @rspack/plugin-react-refresh by @9aoy in #5036
- chore(storybook): bump versions by @JSerFeng in #5025
- chore: bump rspack and update snapshot by @9aoy in #5010
更新内容
新特性 🎉
- feat(runtime-utils): 从 browser 中拆分 parsed 方法 由 @KyrieLii 实现
- feat(prod-server): afterRender Hook context 新增 route 属性 由 @GiveMe-A-Name 实现, 详情可查看 #4984
- feat(plugin-testing): 支持 -u 选项来更新快照 由 @chenjiahan 实现, 详情可查看 #5022
Bug 修复 🐞
- fix(rspack-provider): 修复 react refresh 在微前端场景下不生效的问题 由 @9aoy 实现, 详情可查看 #5023
- fix(builder): plugin-image-compress 在 filename 包含 query 时不生效 由 @fireairforce 实现, 详情可查看 #5007
- fix(plugin-runtime):
Document.tsx
正常工作当用户配置html.title
orhtml.titleByEntries
的时候 由 @fireairforce 实现, 详情可查看 #4961 - fix: 避免在开发环境重复注册 ts-node 由 @yimingjfe 实现, 详情可查看 #5015
- fix(storybook): storybook 注册了额外的 addon babel 插件 由 @JSerFeng 实现, 详情可查看 #5005
- fix: 更新 Storybook 文档后缀 由 @targeral 实现, 详情可查看 #5001
- fix(module-tools): 修复 bundleless 里生成的 d.ts.map 文件中无效的 sources 字段 由 @10Derozan 实现, 详情可查看 #5027
- fix(builder): preload 资源的 crossOrigin 属性与原资源的 crossOrigin 属性保持一致 由 @9aoy 实现, 详情可查看 #5004
- fix(builder): 导出一些 rspack config 类型同时给 rspack output 添加 globalObject 类型 由 @Amour1688 实现, 详情可查看 #5019
- fix: 捕获导入 route module 的错误 由 @yimingjfe 实现, 详情可查看 #5031
- fix(generator): storybook v7 模板 lint 报错 由 @KyrieLii 实现
- fix: 增加更多 ssr metrics 日志信息 由 @GiveMe-A-Name 实现, 详情可查看 #5028
- fix(module-tools): 用户使用 references 时给 tsc 添加 -b 参数来避免 TS6305 错误 由 @10Derozan 实现, 详情可查看 #5013
- fix(worker-server): rslogger 在 worker 环境不能正常工作. 由 @GiveMe-A-Name 实现, 详情可查看 #5014
- fix: bff-core 应该是 testing 插件的直接依赖 由 @yimingjfe 实现, 详情可查看 #5021
- fix: 修改 Storybook 文档文件后缀 由 @targeral 实现, 详情可查看 #4998
- fix(builder): 增加缺失的 lodash 依赖 由 @chenjiahan 实现, 详情可查看 #5038
- fix(storybook): module.rules 中增加 raw query 和 .md 规则 由 @JSerFeng 实现, 详情可查看 #4986
其他变更
- chore: 升级 codesmith 到 v2.3.1, 用于展示执行时间 由 @KyrieLii 实现
- refactor(module-tools): 使用 ast-grep 替代 babel 处理 d.ts 文件里的别名 由 @10Derozan 实现, 详情可查看 #5044
- chore: 使用 disableInlineRouteManifests 代替 enableInlineRouteManifests 由 @yimingjfe 实现, 详情可查看 #5017
- chore: 升级 rspack 版本到 0.4.2 由 @9aoy 实现, 详情可查看 #5041
- chore: 将 @rspack/dev-client 替换为 @rspack/plugin-react-refresh 由 @9aoy 实现, 详情可查看 #5036
- chore(storybook): 升级版本 由 @JSerFeng 实现, 详情可查看 #5025
v2.41.0
What's Changed
New Features 🎉
- feat: installing builder-webpack when performing a new storybookv7 operation in a module project by @10Derozan in #4951
- feat(module-tools): support resolveModuleUserConfig to change user config in hooks by @10Derozan in #4982
- feat(storybook): add adapter for storybook addons, read builderConfig by @JSerFeng in #4946
- feat: remove legacy storybook from module generator by @10Derozan in #4951
- feat: worker server support header likes
x-${metaName}-ssr-fallback
to return csr template by @spencerHT in #4945 - feat(generator): support module doc in new action by @10Derozan
Bug Fixes 🐞
- fix(storybook): package json types and use module.hot instead of import.meta.hot by @JSerFeng in #4937
- hotfix(rspack-provider): can't get rspack util in tools.rspack by @9aoy in #4950
- fix: import('node:xx') would compile failed when target = webworker by @GiveMe-A-Name in #4934
- fix(builder): printFileSize throw err when set output.filename query by @fireairforce in #4988
Other Changes
- chore(module-tools): remove unuse types in template and reference by @10Derozan in #4947
- chore(builder): update stats type by @9aoy in #4938
- chore(rspack-provider): set disableTransformByDefault false to compat rspack next version(0.4.0) by @9aoy in #4953
- chore(rspack-provider): return compiler instead of multiCompiler when targets length is 1 by @9aoy in #4973
- chore(swc): bump swc and helpers by @JSerFeng in #4915
- chore(storybook): enhance docs and auto detect builder provider by @JSerFeng in #4965
- chore: update magic-string version to 0.30 by @10Derozan in #4940
- chore(rspack-provider): update rspack to 0.4.0 by @9aoy in #4987
更新内容
新特性 🎉
- feat: 在模块项目里执行新增 storybookv7 操作时安装 builder-webpack 由 @10Derozan 实现, 详情可查看 #4951
- feat(module-tools): 支持 resolveModuleUserConfig 从而能在 hooks 里修改用户配置 由 @10Derozan 实现, 详情可查看 #4982
- feat(storybook): 为 storybook addons 添加一些适配逻辑,读取builderConfig 由 @JSerFeng 实现, 详情可查看 #4946
- feat: 从模块生成器里移除过时的 storybook 由 @10Derozan 实现, 详情可查看 #4951
- feat: worker server 支持 header 头
x-${metaName}-ssr-fallback
降级 由 @spencerHT 实现, 详情可查看 #4945 - feat(generator): 在 new 操作里支持模块文档功能 由 @10Derozan 实现
Bug 修复 🐞
- fix(storybook): 修改 package json types 字段以及改用 module.hot 而不是 import.meta.hot 由 @JSerFeng 实现, 详情可查看 #4937
- fix: import('node:xx') 将在 target = webworker 时构建失败 由 @GiveMe-A-Name 实现, 详情可查看 #4934
- fix(builder): printFileSize 报错当用户设置了 filename query 参数 由 @fireairforce 实现, 详情可查看 #4988
其他变更
- chore(module-tools): 移除模板和引用中的未使用类型 由 @10Derozan 实现, 详情可查看 #4947
- chore(builder): 更新 stats 类型 由 @9aoy 实现, 详情可查看 #4938
- chore(rspack-provider): 设置 disableTransformByDefault 为 false 以兼容 Rspack next(0.4.0) 版本 由 @9aoy 实现, 详情可查看 #4953
- chore(rspack-provider): 返回 compiler 而非 multiCompiler 当 targets 长度为 1 时 由 @9aoy 实现, 详情可查看 #4973
- chore(swc): 升级 swc 以及 helpers 由 @JSerFeng 实现, 详情可查看 #4915
- chore(storybook): 改进文档,自动判断的 builder provider 由 @JSerFeng 实现, 详情可查看 #4965
- chore: 更新 magic-string 版本到 0.30 由 @10Derozan 实现, 详情可查看 #4940
- chore(rspack-provider): 升级 rspack 到 0.4.0 由 @9aoy 实现, 详情可查看 #4987
v2.40.0
What's Changed
New Features 🎉
- feat: add forceCSR options for worker server by @spencerHT in #4923
Bug Fixes 🐞
- fix: add client data into dependencies by @yimingjfe in #4909
- fix: remake server ssr logger msg by @GiveMe-A-Name in #4922
- fix: startsWith cannot determine subdirectories correctly by @yimingjfe in #4916
- fix(ssr): ssr enable inline assets in production env by @GiveMe-A-Name in #4907
- fix(prod-server): inject reporter from req by @GiveMe-A-Name in #4919
- fix: Even if the page component exists, we should not create the empty layout component by @yimingjfe in #4925
Other Changes
- chore: remove ajv schema verification of configuration by @zllkjc in #4911
- chore(builder): update rspack to 0.3.11 and fix deprecate warning by @9aoy in #4926
- chore(module-tools): remove unuse schema by @10Derozan in #4921
- doc(builder-doc): add version tip for sourceBuild api by @targeral in #4917
- chore(module-tools): remove unuse types and reference in types.d.ts by @10Derozan in #4928
更新内容
新特性 🎉
- feat: 在 worker server 新增 forceCSR 参数和判断 csr=1 降级 由 @spencerHT 实现, 详情可查看 #4923
Bug 修复 🐞
- fix: 添加 client data 文件到 dependencies 中 由 @yimingjfe 实现, 详情可查看 #4909
- fix: 重写 ssr server 日志信息 由 @GiveMe-A-Name 实现, 详情可查看 #4922
- fix: startsWith 函数不能正确地判断子目录 由 @yimingjfe 实现, 详情可查看 #4916
- fix(ssr): ssr 能够在开发环境 inline 静态文件 由 @GiveMe-A-Name 实现, 详情可查看 #4907
- fix(prod-server): 从 req 里拿到 reporter 去注入 由 @GiveMe-A-Name 实现, 详情可查看 #4919
- fix: 即使页面组件存在,也不应该创建一个空的 layout component 由 @yimingjfe 实现, 详情可查看 #4925
其他变更
- chore: 移除 ajv 对项目配置的校验 由 @zllkjc 实现, 详情可查看 #4911
- chore(builder): 升级 rspack 到 0.3.11 并修复 deprecate warning 由 @9aoy 实现, 详情可查看 #4926
- chore(module-tools): 移除没有使用的 schema 由 @10Derozan 实现, 详情可查看 #4921
- doc(builder-doc): 为 sourceBuild API 添加版本提示信息 由 @targeral 实现, 详情可查看 #4917
- chore(module-tools): 移除 types.d.ts 无用的类型和引用 由 @10Derozan 实现, 详情可查看 #4928
v2.39.2
What's Changed
Bug Fixes 🐞
- fix(app-tools): init config can't handle moduleScopes as function by @GiveMe-A-Name in #4897
更新内容
Bug 修复 🐞
- fix(app-tools): 初始化 config 不能处理 moduleScopes 是 function 的情况 由 @GiveMe-A-Name 实现, 详情可查看 #4897