v2.11.0
Features:
-
chore: optimize @modern-js/create-request types
chore: 优化 @modern-js/create-request 类型
-
feat: support code line highlight
feat: 支持代码行高亮
-
feat(builder): support output.assetsRetry in rspack-provider
feat(builder): 在 rspack-provider 中支持 output.assetsRetry 配置能力
-
feat: 控制台输出 rspack 版本
feat: Print the version of rspack in the console.
-
feat: support use node api run dev & build & deploy command
feat: 支持通过 node api 运行 dev & build & deploy 命令
-
feat: sink builder-plugin-swc abilities to
builder-plugin-swc-base.feat: 将 builder-plugin-swc 能力下沉到 builder-plugin-swc-base 里.
-
feat: 添加
source.transformImoprtfeat: add
source.transformImoprt -
feat(plugin-image-compress): compatible array config
feat(plugin-image-compress): 兼容传入数组配置
-
feat: assets and data prefetching is supported
feat: 支持资源和数据预加载
-
chore(plugin-lint): deprecate modern pre-commit command
chore(plugin-lint): 废弃 modern pre-commit 命令
-
chore(module-tools): pretty the log format
chore(module-tools): 优化日志格式
-
feat(builder): print total file size after build
feat(builder): 构建后输出文件体积的总和
-
feat(utils): move universal utils to the universal folder
feat(utils): 将运行时使用的 utils 移动到 universal 目录
-
chore: adjust doc-tools constructor
chore: 调整 doc-tools 入参
-
chore(utils): bump commander from v8 to v10
chore(utils): 将 commander 从 v8 升级到 v10
-
feat: add header anchor in mobile
feat: 移动端显示 header anchor
-
feat: use generated default config objects instead of global objects
feat: 默认配置项使用动态生成替代全局对象
-
feat: add
dts.abortOnErrorconfigfeat: 添加
dts.abortOnError配置 -
feat(builder): support setting forceSplitting to be an object
feat(builder): 支持将 forceSplitting 设置为一个对象
-
chore(rspack-builder): update Rspack to 0.1.4
chore(rspack-builder): 升级 Rspack 相关依赖至 0.1.4 版本
Bug Fix:
-
fix: For rspack-provider can use
tools.babelconfiguration, inline the@babel/preset-typescriptto handle ts syntax in rspack-provider.fix: 为了 rspack-provider 能给使用
tools.babel配置项,将@babel/preset-typescript内置进 rspack-provider 去处理 ts 语法。 -
fix: translate some chinese to english in en docs
fix: 将部分英文文档中的中文翻译为英文
-
fix: The compiled babel-loader can't find the babel/core in builder-shared
fix: 在 builder-shared 中的预编译 babel-loader 找不到 babel/core 依赖
-
fix: load chunk while can not load all css asset, when streaming ssr.
fix: 使用 streaming ssr 时,不能加载当前 chunk 的所有 css 资源
-
fix(builder): remove duplicated babel-plugin-import
fix(builder): 移除重复注册的 babel-plugin-import
-
fix(builder): incorrect asset URL in windows
fix(builder): 修复 windows 上生成静态资源 URL 错误的问题
-
fix: doc tools cli options
fix: doc tools cli 参数
-
fix: match content result
fix: 修复搜索错误
-
fix(plugin-swc): add warning when using esbuild with SWC
fix(plugin-swc): 在同时启用 SWC 和 esbuild 时抛出 warning
-
fix(builder): should preserve viewBox when minify svg
fix(builder): 修复压缩 svg 导致 viewBox 丢失的问题
-
fix(rspack-builder): support rspack global node-polyfill use workaround
fix(rspack-builder): 采用临时方案在 rspack 中支持 global node-polyfill
-
fix: fix base
fix: 修复base配置
-
fix: distpath.root not take effect when serve
fix: 修复 distpath.root 在 run serve 时不生效的问题
-
fix: remove nestedRoutes file from @modern-js/utils
fix: 将 nestedRoutes 从 @modern-js/utils 中移除
-
fix: schema parser error, builder tools.devServer.proxy can be a array
fix: schema 解析错误,builder `tools.devSerer.proxy' 可以是个数组。
-
fix: fix lost props when using nested route in micro-front-end mode
修复嵌套路由在微前端场景下主子应用传递 props 丢失问题
-
fix: the swc compiler can not create two different options instance && move default config to swc-base
fix: swc 转译器无法创建两个不同配置的实体 && 将默认配置移到 swc-base
-
fix(module-tools, module-tools-docs): fix svgr usage
fix(module-tools, module-tools-docs): 修复 svgr 的使用
-
fix: 移除 babel plugin-import 对于非法函数参数的校验
fix: remove babel plugin-import invalid function type options checking
-
fix(builder): failed to set empty distPath.js/css
fix(builder): 修复设置 distPath.js/css 为空时报错的问题
-
fix(core): beforeExit should be sync workflow
fix(core): beforeExit 需要使用同步的 workflow
-
fix: should hide publicPath in injected manifest
fix: 应该隐藏 publicPath 在注入的 manifest 中
-
fix(doc-core): run string-replace-loader before mdx-loader
fix(doc-core): 在 mdx-loader 之前执行 string-replace-loader
-
fix(utils): remove useless oneOf chainId,avoid user usage error.
fix(utils): 移除无用的 oneOf chainId,防止用户使用异常