Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Release v2.14.0
Features:
#3484
feat: add esbuildOptions to support that change esbuild options directly
feat: 新增esbuildOptions配置支持直接修改esbuild最终配置
#3463
chore(deps): bump cssnano from v5 to v6
chore(deps): 将 cssnano 从 v5 升级到 v6
#3472
feat: add doc-tools e2e
feat: 添加 doc-tools e2e 测试用例
#3460
feat(builder): add convertToRem.inlineRuntime config
feat(builder): 新增 convertToRem.inlineRuntime 配置项
#3462
chore(generator): make rspack a priority
chore(generator): 将启用 rspack 作为优先选项
#3498
chore(server): no longer replace globalVars when compiler is babel
chore(server): 进行 babel compile 时不再替换 globalVars
#3492
feat: adjust server.worker config to deploy.worker.ssr
feat: 调整 server.worker 为 deploy.worker.ssr
#3496
feat: support Comment component in Document.tsx
feat: 支持 Comment 组件,可以保留用户的注释到最终的 html 上
#3459
feat: add hook
modifyRoutes
feat: 增加 hook
modifyRoutes
#3485
feat: adpate rspack copy plugin
feat: 适配 rspack copy 插件
#3481
chore(rspack-provider): update rspack to 0.1.8
chore(rspack-provider): 升级 rspack 相关依赖到 0.1.8 版本
#3476
feat: re-export
createPath
from react-routerfeat: 从 react-router 导出
createPath
#3445
fix(devServer): using current host and port to create HMR connection
fix(devServer): 建立 HMR 连接时默认使用当前 host 和 port
#3475
feat: support config handle of Route
feat: 支持配置 Route 的 handle 属性
#3448
feat: add ssr.inlineScript for use inline json instead inline script when ssr
feat: 添加 ssr.inlineScript 用于在 ssr 模式下使用内联 json 而不是内联脚本
#3473
chore(cli): improve commands descriptions
chore(cli): 优化命令的描述文案
#3501
feat(builder): source.globalVars support function usage
feat(builder): source.globalVars 支持函数写法
#3480
feat: support extendPageData hook and last updated time
feat: 支持 extendPageData 钩子和最后更新时间功能
#3469
feat: add optional dynamic routes docs
feat: 添加可选动态路由文档
Bug Fix:
#3443
fix: The http://0.0.0.0:port can't visit in windows, we shouldn't set publicPath as
//0.0.0.0:${port}/
;fix: 在 windows 里不能正常访问 http://0.0.0.0:port,我们不应该将 publicPath 设置成
//0.0.0.0:${port}
#3497
fix(app-tools): failed to scan public dir when using Rspack
fix(app-tools): 修复 Rspack 模式读取 public 目录失败的问题
#3427
fix(utils): the esm format files should be generate for the client
fix(utils): 应该为客户端使用,生成 esm 格式的文件
#3488
fix(app-tools): can not disable output.cleanDistPath
fix(app-tools): 修复无法禁用 output.cleanDistPath 的问题
#3491
fix: doc e2e test in windows
fix: 解决 windows 下 e2e 测试失败的问题
#3458
fix: the streaming ssr may add repeated css assets, because the route-manifets would product all css link
fix: 因为 route-manifets 会生成所有 css link 信息,导致 streaming ssr 可能添加重复的 css 资源,
#3503
fix: ssr and document integration test error
fix: 修复 ssr 和 document 的集测错误
#3487
fix(monorepo): ignore unnessary peer deps warning from antd
fix(monorepo): 忽略由 antd 造成的不必要的 peer deps 警告
#3455
fix(app-tools): should not print all addresses when custom dev.host
fix(app-tools): 修复自定义 dev.host 时会输出多余的 URL 地址的问题
#3477
fix: router missing App static property
fix: router 确实 App 的静态属性
#3504
fix: 更新集测 snapshot,修复 document 功能在 node 14 下的错误
fix: update test snapshot, fix document error in node 14
#3470
fix(generator): README should be written in English
fix(generator): README 应该使用英文编写
fix(garfish): pass basename to subApp
test(garfish): add e2e test for passing basename
#3500
fix: ssr stream test case
fix: 修复 ssr stream 测试用例
#3502
fix(runtime): MODERN_TARGET is not injected when using Rspack
fix(runtime): 修复 Rspack 模式未注入 MODERN_TARGET 的问题
#3494
fix(builder): update source.alias type when using Rspack
fix(builder): 更新使用 Rspack 时的 source.alias 类型
#3489
chore: remove plugin-egg and plugin-nest
chore: 移除 plugin-egg 和 plugin-nest
#3499
fix: set encoding for defered loader
fix: 为 defer loader 设置 encoding
#3465
fix(doc-core): fix failed to resolve @modern-js/utils/logger
fix(doc-core): 修复引用 @modern-js/utils/logger 失败的问题