Skip to content

v2.4.0

Choose a tag to compare

@github-actions github-actions released this 09 Feb 05:36

Release v2.4.0

Features:

  • #2807

    docs: fix buildPreset content

    docs: 修复 buildPreset 内容

  • #2803

    docs: make v2 docs as default

    docs: 将 Modern.js v2 文档作为默认文档

  • #2811

    feat(hmr-client): add HMR connected log

    feat(hmr-client): add HMR 连接成功的日志

  • #2783

    feat: Add config to enable legacy decorator and 2 css-in-js plugins, update swc version

    feat: 以及 2 个 css-in-js 插件,升级 swc 版本

  • #2818

    feat: reuse bundleAnalyzer plugin, support performance.bundleAnalyze config in rspack-provider

    feat: 复用 bundleAnalyzer 插件,在 rspack-provider 中支持 performance.bundleAnalyze 配置项

  • #2792

    feat: highlight code diff

    feat: diff 代码块高亮

  • #2793

    feat: new command tooitip support code highlight

    feat: new 命令提示支持代码高亮

  • #2786

    feat: more plugin rebase in builder-shared

    feat: 更多 plugin 下沉到 builder-shared

  • #2785

    feat: use 'devtool: source-map' for ssr webpack bundle

    feat: 使用 'devtool: source-map' 作为 ssr 构建时的默认配置

  • #2769

    feat: support catch-all routing

    feat: 支持通配路由

  • #2787

    feat(doc-core): improve table style

    feat(doc-core): 优化 table 样式

  • #2712

    feat: modern-js support rspack bundler

    feat: modern-js 支持 rspack 构建工具

  • #2825

    feat: refactor search ui

    feat: 重构搜索 UI

  • #2799

    perf(builder): improve styled-components compile speed

    perf(builder): 优化 styled-components 编译速度

  • #2790

    chore: rename MWA to Web App

    chore: 将 MWA 重命名为 Web App

  • #2827

    feat: optimize doc bundle

    feat: 优化文档工程打包体积

  • #2806

    update rollup-plugin-dts version, support cts and mts file

    更新rollup-plugin-dts版本,支持cts和mts文件

  • #2782

    chore: catch react-dom/server require for react 17

    chore: 捕获引入 react-dom/server 的逻辑,避免在 react 17 下报错

  • #2776

    feat: change dev log color

    feat: 修改 dev 展示的内容颜色

  • #2778

    fix: regard base as asset prefix when output.assetPrefix is not set

    fix: 当 output.assetPrefix 未设置时,将 base 设置为 assetPrefix

  • #2824

    doc(garfish): add doc for garfish

    增加微前端文档

  • #2797

    support global styles

    支持全局样式文件

  • #2774

    feat(core): improve support for exporting a function in config file

    feat(core): 完善对配置文件中导出函数的支持

  • #2777

    feat: flatten mdx content

    feat: 对 mdx 的内容进行扁平化

  • #2788

    feat(doc-core): optimize ui

    feat(doc-core): 优化主题 UI

Bug Fix:

  • #2816

    fix(builder): incorrect progress bar color when compile failed

    fix(builder): 修复编译错误时进度条颜色错误的问题

  • #2805

    fix: change the builder resolve plugin

    fix: 修复 builder resolve 插件

  • #2823

    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

  • #2789

    fix(tailwind): fix webpack cache not work when using twin.macro

    fix(tailwind): 修复使用 twin.macro 时 webpack 缓存不生效的问题

  • #2781

    fix(builder): increase size limit when target is node

    fix(builder): 修复 target 为 node 时体积限制过小的问题

  • #2801

    fix: modernjs 2.0 doc

    fix: 修复 modernjs 2.0 文档遗留问题

  • #2817

    fix(builder): should not generate cache when build failed

    fix(builder): 修复构建失败时会生成无效编译缓存的问题

  • #2821

    fix: sub root route should be matched by a splat route

    fix: 子根路由应该被通配路由匹配

  • #2829

    fix: restore title

    fix: 复原 title

  • #2779

    fix: same title in a doc

    fix: 修复文档中同一标题出现多次导致的渲染问题

  • #2815

    fix: lazy import rspack-provider

    fix: 懒加载 rspack-provider