Skip to content

v2.7.0

Choose a tag to compare

@github-actions github-actions released this 02 Mar 07:17

Features:

  • #3016

    feat: support tabs group

    feat: 支持 tabs 分组联动

  • #3018

    fix: add watch mode to copy

    fix: 为 copy 功能补充 watch 逻辑

  • #3001

    feat: support optional params in file-based route

    feat: 约定式路由支持可选参数

  • #2997

    feat: add Rspack provider swc options, add builder-plugin-swc overrideBrowserslist configuration, report warning when enable latestDecorator in builder-plugin-swc

    feat: 给 Rspack provider 增加 swc 相关配置项,增加 builder-plugin-swc overrideBrowserslist 配置,在 builder-plugin-swc 启用 latestDecorator 后增加 warning 报错

  • #3019

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

    feat(builder): 在 rspack-provider 中支持 output.enableAssetFallback 配置项

  • #2984

    feat: support deferred data for streaming ssr

    feat: 流式渲染支持 deferred data

  • #2987

    feat: nav sub menu group

    feat: 支持导航栏子菜单分组

  • #3037

    feat(generator): remove runtime dep for storybook

    feat(generator): 移除 Storybook 对于 runtime 的依赖

  • #3031

    feat: 增加 copy 配置以及对 core-js path 的 alias

    feat: support copy config and add alias of core-js

  • #2985

    hotfix(builder): make devServer.proxy schema check loosely

    hotfix(builder): devServer.proxy 类型检验采用非严格模式

  • #2986

    chore: make file naming consistent

    chore: 统一文件命名为小驼峰格式

  • #2990

    feat: logo dark mode

    feat: 支持深色模式 logo

  • #2994

    chore: make test files naming consistent

    chore: 统一测试文件命名为小驼峰格式

  • #3009

    feat: support custom apiDir, lambdaDir and style of writing for bff

    feat: 支持定制 api 目录,lambda 目录,bff 的写法

  • #3026

    fix: performance.chunkSplit.strategy position

    fix: 修复 performance.chunkSplit.strategy 位置错误

Bug Fix:

  • #3003

    fix(rspack-provider): missing tools.autoprefixer type

    fix(rspack-provider): 修复缺少 tools.autoprefixer 类型定义的问题

  • #3039

    fix(builder): tools.sass type should use legacy sass options by default

    fix(builder): tools.sass 默认使用 legacy sass 选项类型

  • #2993

    fix(builder): vendor library chunks include sources

    fix(builder): 用户源码被划分到第三方库所在 Chunk

  • #3023

    fix: modern server not serve static file in developmenet env, dev-server-middleware serve it

    fix: modern server 在开发环境不再托管静态文件,dev-server-middleware 托管他们

  • #3043

    fix: remove nestedRoutes export

    fix: 移除 nestedRoutes 导出

  • #3012

    fix: should pass extensions option to loader

    fix: extensions 配置应该传给 loader

  • #3017

    fix: ssg error reporting inaccuracy problem

    fix: 修复 ssg 报错不准确的问题

  • #2989

    fix(plugin-swc): webpack magic comment is removed after compilation

    fix(plugin-swc): 修复 webpack magic comment 被错误移除的问题

  • #3004

    fix: disable swc react refresh when ssr mode.

    fix: 当在 SSR 模式时,禁用 swc react refresh.

  • #3036

    fix: lock @modern-js/utils/ssr by webpack alias

    fix: 通过 webpack 别名将 @modern-js/utils/ssr 锁到同一版本

  • #3029

    fix(doc-core): failed to build when using logo.dark

    fix(doc-core): 修复配置 logo.dark 时构建失败的问题

  • #3020

    fix: remove process.env.PORT from the bff generate client code

    fix: 从 bff 的 generate client code 中移除 process.env.PORT

  • #3033

    fix(plugin-storybook): remove builtin babel-plugin-import when use module-tools

    fix(plugin-storybook): 在 module-tools 内使用时不默认添加 babel-plugin-import

  • #3014

    fix: some style

    fix: 修复一些样式问题

  • #3028

    fix: required dependencies of Storybook on runtime dependency

    fix: 修复 Storybook 对于 runtime 的必要依赖性

  • #2983

    fix: dark mode

    fix: 暗黑模式下闪烁

  • #2998

    fix(plugin-swc): runtime error when set dev.hmr to false

    fix(plugin-swc): 修复 dev.hmr 设置为 false 时出现运行时错误的问题

  • #3025

    fix: use api.useResolvedConfigContext instead useResolvedConfigContext from @modern-js/core

    fix: 使用 api.useResolvedConfigContext 代替从 @modern-js/core 中导出的 useResolvedConfigContext