v2.7.0
Features:
-
feat: support tabs group
feat: 支持 tabs 分组联动
-
fix: add watch mode to copy
fix: 为 copy 功能补充 watch 逻辑
-
feat: support optional params in file-based route
feat: 约定式路由支持可选参数
-
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 报错
-
feat(builder): support output.enableAssetFallback in rspack-provider
feat(builder): 在 rspack-provider 中支持 output.enableAssetFallback 配置项
-
feat: support deferred data for streaming ssr
feat: 流式渲染支持 deferred data
-
feat: nav sub menu group
feat: 支持导航栏子菜单分组
-
feat(generator): remove runtime dep for storybook
feat(generator): 移除 Storybook 对于 runtime 的依赖
-
feat: 增加 copy 配置以及对 core-js path 的 alias
feat: support copy config and add alias of core-js
-
hotfix(builder): make devServer.proxy schema check loosely
hotfix(builder): devServer.proxy 类型检验采用非严格模式
-
chore: make file naming consistent
chore: 统一文件命名为小驼峰格式
-
feat: logo dark mode
feat: 支持深色模式 logo
-
chore: make test files naming consistent
chore: 统一测试文件命名为小驼峰格式
-
feat: support custom apiDir, lambdaDir and style of writing for bff
feat: 支持定制 api 目录,lambda 目录,bff 的写法
-
fix: performance.chunkSplit.strategy position
fix: 修复 performance.chunkSplit.strategy 位置错误
Bug Fix:
-
fix(rspack-provider): missing tools.autoprefixer type
fix(rspack-provider): 修复缺少 tools.autoprefixer 类型定义的问题
-
fix(builder): tools.sass type should use legacy sass options by default
fix(builder): tools.sass 默认使用 legacy sass 选项类型
-
fix(builder): vendor library chunks include sources
fix(builder): 用户源码被划分到第三方库所在 Chunk
-
fix: modern server not serve static file in developmenet env, dev-server-middleware serve it
fix: modern server 在开发环境不再托管静态文件,dev-server-middleware 托管他们
-
fix: remove nestedRoutes export
fix: 移除 nestedRoutes 导出
-
fix: should pass extensions option to loader
fix: extensions 配置应该传给 loader
-
fix: ssg error reporting inaccuracy problem
fix: 修复 ssg 报错不准确的问题
-
fix(plugin-swc): webpack magic comment is removed after compilation
fix(plugin-swc): 修复 webpack magic comment 被错误移除的问题
-
fix: disable swc react refresh when ssr mode.
fix: 当在 SSR 模式时,禁用 swc react refresh.
-
fix: lock @modern-js/utils/ssr by webpack alias
fix: 通过 webpack 别名将 @modern-js/utils/ssr 锁到同一版本
-
fix(doc-core): failed to build when using logo.dark
fix(doc-core): 修复配置 logo.dark 时构建失败的问题
-
fix: remove process.env.PORT from the bff generate client code
fix: 从 bff 的 generate client code 中移除 process.env.PORT
-
fix(plugin-storybook): remove builtin babel-plugin-import when use module-tools
fix(plugin-storybook): 在 module-tools 内使用时不默认添加 babel-plugin-import
-
fix: some style
fix: 修复一些样式问题
-
fix: required dependencies of Storybook on runtime dependency
fix: 修复 Storybook 对于 runtime 的必要依赖性
-
fix: dark mode
fix: 暗黑模式下闪烁
-
fix(plugin-swc): runtime error when set dev.hmr to false
fix(plugin-swc): 修复 dev.hmr 设置为 false 时出现运行时错误的问题
-
fix: use api.useResolvedConfigContext instead useResolvedConfigContext from @modern-js/core
fix: 使用 api.useResolvedConfigContext 代替从 @modern-js/core 中导出的 useResolvedConfigContext