Skip to content

v2.11.0

Choose a tag to compare

@github-actions github-actions released this 30 Mar 08:22

Features:

  • #3175

    chore: optimize @modern-js/create-request types

    chore: 优化 @modern-js/create-request 类型

  • #3294

    feat: support code line highlight

    feat: 支持代码行高亮

  • #3236

    feat(builder): support output.assetsRetry in rspack-provider

    feat(builder): 在 rspack-provider 中支持 output.assetsRetry 配置能力

  • #3263

    feat: 控制台输出 rspack 版本

    feat: Print the version of rspack in the console.

  • #3295

    feat: support use node api run dev & build & deploy command

    feat: 支持通过 node api 运行 dev & build & deploy 命令

  • #3237

    feat: sink builder-plugin-swc abilities to builder-plugin-swc-base.

    feat: 将 builder-plugin-swc 能力下沉到 builder-plugin-swc-base 里.

  • #3258

    feat: 添加 source.transformImoprt

    feat: add source.transformImoprt

  • #3288

    feat(plugin-image-compress): compatible array config

    feat(plugin-image-compress): 兼容传入数组配置

  • #3283

    feat: assets and data prefetching is supported

    feat: 支持资源和数据预加载

  • #3278

    chore(plugin-lint): deprecate modern pre-commit command

    chore(plugin-lint): 废弃 modern pre-commit 命令

  • #3262

    chore(module-tools): pretty the log format

    chore(module-tools): 优化日志格式

  • #3248

    feat(builder): print total file size after build

    feat(builder): 构建后输出文件体积的总和

  • #3249

    feat(utils): move universal utils to the universal folder

    feat(utils): 将运行时使用的 utils 移动到 universal 目录

  • #3243

    chore: adjust doc-tools constructor

    chore: 调整 doc-tools 入参

  • #3264

    chore(utils): bump commander from v8 to v10

    chore(utils): 将 commander 从 v8 升级到 v10

  • #3277

    feat: add header anchor in mobile

    feat: 移动端显示 header anchor

  • #3290

    feat: use generated default config objects instead of global objects

    feat: 默认配置项使用动态生成替代全局对象

  • #3268

    feat: add dts.abortOnError config

    feat: 添加 dts.abortOnError 配置

  • #3257

    feat(builder): support setting forceSplitting to be an object

    feat(builder): 支持将 forceSplitting 设置为一个对象

  • #3297

    chore(rspack-builder): update Rspack to 0.1.4

    chore(rspack-builder): 升级 Rspack 相关依赖至 0.1.4 版本

Bug Fix:

  • #3259

    fix: For rspack-provider can use tools.babel configuration, inline the @babel/preset-typescript to handle ts syntax in rspack-provider.

    fix: 为了 rspack-provider 能给使用 tools.babel 配置项,将 @babel/preset-typescript 内置进 rspack-provider 去处理 ts 语法。

  • #3244

    fix: translate some chinese to english in en docs

    fix: 将部分英文文档中的中文翻译为英文

  • #3292

    fix: The compiled babel-loader can't find the babel/core in builder-shared

    fix: 在 builder-shared 中的预编译 babel-loader 找不到 babel/core 依赖

  • #3274

    fix: load chunk while can not load all css asset, when streaming ssr.

    fix: 使用 streaming ssr 时,不能加载当前 chunk 的所有 css 资源

  • #3282

    fix(builder): remove duplicated babel-plugin-import

    fix(builder): 移除重复注册的 babel-plugin-import

  • #3279

    fix(builder): incorrect asset URL in windows

    fix(builder): 修复 windows 上生成静态资源 URL 错误的问题

  • #3253

    fix: doc tools cli options

    fix: doc tools cli 参数

  • #3267

    fix: match content result

    fix: 修复搜索错误

  • #3241

    fix(plugin-swc): add warning when using esbuild with SWC

    fix(plugin-swc): 在同时启用 SWC 和 esbuild 时抛出 warning

  • #3296

    fix(builder): should preserve viewBox when minify svg

    fix(builder): 修复压缩 svg 导致 viewBox 丢失的问题

  • #3260

    fix(rspack-builder): support rspack global node-polyfill use workaround

    fix(rspack-builder): 采用临时方案在 rspack 中支持 global node-polyfill

  • #3269

    fix: fix base

    fix: 修复base配置

  • #3266

    fix: distpath.root not take effect when serve

    fix: 修复 distpath.root 在 run serve 时不生效的问题

  • #3242

    fix: remove nestedRoutes file from @modern-js/utils

    fix: 将 nestedRoutes 从 @modern-js/utils 中移除

  • #3255

    fix: schema parser error, builder tools.devServer.proxy can be a array

    fix: schema 解析错误,builder `tools.devSerer.proxy' 可以是个数组。

  • #3230

    fix: fix lost props when using nested route in micro-front-end mode

    修复嵌套路由在微前端场景下主子应用传递 props 丢失问题

  • #3286

    fix: the swc compiler can not create two different options instance && move default config to swc-base

    fix: swc 转译器无法创建两个不同配置的实体 && 将默认配置移到 swc-base

  • #3273

    fix(module-tools, module-tools-docs): fix svgr usage

    fix(module-tools, module-tools-docs): 修复 svgr 的使用

  • #3284

    fix: 移除 babel plugin-import 对于非法函数参数的校验

    fix: remove babel plugin-import invalid function type options checking

  • #3265

    fix(builder): failed to set empty distPath.js/css

    fix(builder): 修复设置 distPath.js/css 为空时报错的问题

  • #3246

    fix(core): beforeExit should be sync workflow

    fix(core): beforeExit 需要使用同步的 workflow

  • #3291

    fix: should hide publicPath in injected manifest

    fix: 应该隐藏 publicPath 在注入的 manifest 中

  • #3261

    fix(doc-core): run string-replace-loader before mdx-loader

    fix(doc-core): 在 mdx-loader 之前执行 string-replace-loader

  • #3281

    fix(utils): remove useless oneOf chainId,avoid user usage error.

    fix(utils): 移除无用的 oneOf chainId,防止用户使用异常