v2.4.0
Release v2.4.0
Features:
-
docs: fix buildPreset content
docs: 修复 buildPreset 内容
-
docs: make v2 docs as default
docs: 将 Modern.js v2 文档作为默认文档
-
feat(hmr-client): add HMR connected log
feat(hmr-client): add HMR 连接成功的日志
-
feat: Add config to enable legacy decorator and 2 css-in-js plugins, update swc version
feat: 以及 2 个 css-in-js 插件,升级 swc 版本
-
feat: reuse bundleAnalyzer plugin, support performance.bundleAnalyze config in rspack-provider
feat: 复用 bundleAnalyzer 插件,在 rspack-provider 中支持 performance.bundleAnalyze 配置项
-
feat: highlight code diff
feat: diff 代码块高亮
-
feat: new command tooitip support code highlight
feat: new 命令提示支持代码高亮
-
feat: more plugin rebase in
builder-sharedfeat: 更多 plugin 下沉到
builder-shared -
feat: use 'devtool: source-map' for ssr webpack bundle
feat: 使用 'devtool: source-map' 作为 ssr 构建时的默认配置
-
feat: support catch-all routing
feat: 支持通配路由
-
feat(doc-core): improve table style
feat(doc-core): 优化 table 样式
-
feat: modern-js support rspack bundler
feat: modern-js 支持 rspack 构建工具
-
feat: refactor search ui
feat: 重构搜索 UI
-
perf(builder): improve styled-components compile speed
perf(builder): 优化 styled-components 编译速度
-
chore: rename MWA to Web App
chore: 将 MWA 重命名为 Web App
-
feat: optimize doc bundle
feat: 优化文档工程打包体积
-
update rollup-plugin-dts version, support cts and mts file
更新rollup-plugin-dts版本,支持cts和mts文件
-
chore: catch react-dom/server require for react 17
chore: 捕获引入 react-dom/server 的逻辑,避免在 react 17 下报错
-
feat: change dev log color
feat: 修改 dev 展示的内容颜色
-
fix: regard
baseas asset prefix when output.assetPrefix is not setfix: 当 output.assetPrefix 未设置时,将
base设置为 assetPrefix -
doc(garfish): add doc for garfish
增加微前端文档
-
support global styles
支持全局样式文件
-
feat(core): improve support for exporting a function in config file
feat(core): 完善对配置文件中导出函数的支持
-
feat: flatten mdx content
feat: 对 mdx 的内容进行扁平化
-
feat(doc-core): optimize ui
feat(doc-core): 优化主题 UI
Bug Fix:
-
fix(builder): incorrect progress bar color when compile failed
fix(builder): 修复编译错误时进度条颜色错误的问题
-
fix: change the builder resolve plugin
fix: 修复 builder resolve 插件
-
fix(garfish): load microApp can not match it's route
fix(garfish): server.baseUrl is in preference to router.basename
修复微前端模式下约定式路由和自控式路由子应用无法正确加载问题
修复 basename 优先级问题 server.baseUrl 高于 router.basename
-
fix(tailwind): fix webpack cache not work when using twin.macro
fix(tailwind): 修复使用 twin.macro 时 webpack 缓存不生效的问题
-
fix(builder): increase size limit when target is node
fix(builder): 修复 target 为 node 时体积限制过小的问题
-
fix: modernjs 2.0 doc
fix: 修复 modernjs 2.0 文档遗留问题
-
fix(builder): should not generate cache when build failed
fix(builder): 修复构建失败时会生成无效编译缓存的问题
-
fix: sub root route should be matched by a splat route
fix: 子根路由应该被通配路由匹配
-
fix: restore title
fix: 复原 title
-
fix: same title in a doc
fix: 修复文档中同一标题出现多次导致的渲染问题
-
fix: lazy import
rspack-providerfix: 懒加载
rspack-provider