Skip to content

Commit

Permalink
docs: add v1.2 ecosystem updates (#9068)
Browse files Browse the repository at this point in the history
* docs: add v1.2 ecosystem updates

* fix: spell

* fix: spell

* fix: spell
  • Loading branch information
chenjiahan authored Jan 21, 2025
1 parent 285e8e3 commit c1819ba
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 3 deletions.
1 change: 1 addition & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ extend-exclude = [
JSerFeng = "JSerFeng"

[default.extend-words]
Colum = "Colum"
Nd = "Nd"
fo = "fo"
splitted = "splitted"
Expand Down
22 changes: 21 additions & 1 deletion website/docs/en/blog/announcing-1-2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,33 @@ The implementation of side effects optimization has been refactored to be simple

> See [perf: parallelize side effects optimization](https://github.com/web-infra-dev/rspack/pull/8781) for more details.
## Ecosystem

### Angular support

Nx team core member [Colum Ferry](https://github.com/Coly010) has brought complete Angular support to the Rspack ecosystem.

With the newly released `@ng-rsbuild/plugin-angular` and `@ng-rspack/build` packages, developers can now use Rspack or Rsbuild to build Angular applications, with faster build performance and module federation support.

Please visit [ng-rspack-build](https://github.com/Coly010/ng-rspack-build) for more information.

### Rsbuild v1.2

Rsbuild v1.2 has been released alongside Rspack v1.2, bringing several new features:

- Customize manifest file generation through [output.manifest.generate](https://rsbuild.dev/config/output/manifest#generate).
- Specify files to retain in the dist directory using [cleanDistPath.keep](https://rsbuild.dev/config/output/clean-dist-path#keep).
- [@rsbuild/plugin-assets-retry](https://rsbuild.dev/plugins/list/plugin-assets-retry) now generates smaller runtime code.

> For more details, see [Rsbuild v1.2.0](https://github.com/web-infra-dev/rsbuild/releases/tag/v1.2.0).
## Upgrade guide

### Upgrade SWC plugins

In Rspack v1.2, the Rust crate `swc_core` has been upgraded to `10.1.0`. Users of the SWC Wasm plugin need to ensure version consistency with `swc_core` being used, otherwise, it may lead to unforeseen issues.

For more details, see [SWC documentation](https://swc.rs/docs/plugin/selecting-swc-core).
For more details, see [FAQ - SWC plugin version unmatched](https://swc.rs/docs/plugin/selecting-swc-core).

### Disable WarnCaseSensitiveModulesPlugin by default

Expand Down
24 changes: 22 additions & 2 deletions website/docs/zh/blog/announcing-1-2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -146,13 +146,33 @@ new rspack.SwcJsMinimizerRspackPlugin({

> 详见:[perf: parallelize side effects optimization](https://github.com/web-infra-dev/rspack/pull/8781)
## 生态系统

### Angular 支持

Nx 团队的核心成员 [Colum Ferry](https://github.com/Coly010) 为 Rspack 生态带来了完整的 Angular 支持。

通过新发布的 `@ng-rsbuild/plugin-angular``@ng-rspack/build` 包,开发者现在可以使用 Rspack 或 Rsbuild 来构建 Angular 应用,获得更快的构建性能和模块联邦等特性。

欢迎访问 [ng-rspack-build](https://github.com/Coly010/ng-rspack-build) 仓库了解详细信息。

### Rsbuild v1.2

Rsbuild v1.2 已经与 Rspack v1.2 同步发布,并带来了多项新特性:

- 通过 [output.manifest.generate](https://rsbuild.dev/config/output/manifest#generate) 来自定义 manifest 文件的生成。
- 通过 [cleanDistPath.keep](https://rsbuild.dev/config/output/clean-dist-path#keep) 来指定在产物目录下保留的文件。
- [@rsbuild/plugin-assets-retry](https://rsbuild.dev/plugins/list/plugin-assets-retry) 现在会生成更小的运行时代码。

> 详情请参考 [Rsbuild v1.2.0](https://github.com/web-infra-dev/rsbuild/releases/tag/v1.2.0)
## 升级指南

### 升级 SWC 插件

在 Rspack v1.2 中,Rust 包中 `swc_core` 已升级到 `10.1.0`。SWC Wasm 插件的用户需要确保与正在使用的 `swc_core` 版本一致,否则可能会导致意外问题。
在 Rspack v1.2 中,Rust 依赖包 `swc_core` 的版本已升级到 `10.1.0`。SWC Wasm 插件的用户需要确保与正在使用的 `swc_core` 版本一致,否则可能会导致意外问题。

> 详情请参考 [SWC 文档](https://swc.rs/docs/plugin/selecting-swc-core)
> 详情请参考 [常见问题 - SWC 插件版本不匹配](/errors/swc-plugin-version)
### WarnCaseSensitiveModules 默认关闭

Expand Down
1 change: 1 addition & 0 deletions website/project-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ chenjiahan
codeva
commmonjs
cpuprofile
Colum
CRACO
cssextractrspackplugin
dail
Expand Down

2 comments on commit c1819ba

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented on c1819ba Jan 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Ecosystem CI detail: Open

suite result
modernjs ❌ failure
rspress ✅ success
rslib ❌ failure
rsbuild ✅ success
rsdoctor ✅ success
examples ✅ success
devserver ✅ success
nuxt ✅ success

@github-actions
Copy link
Contributor

@github-actions github-actions bot commented on c1819ba Jan 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📝 Benchmark detail: Open

Name Base (2025-01-21 c06787b) Current Change
10000_big_production-mode_disable-minimize + exec 36.7 s ± 515 ms 38 s ± 1.26 s +3.51 %
10000_development-mode + exec 1.86 s ± 52 ms 1.87 s ± 215 ms +0.26 %
10000_development-mode_hmr + exec 681 ms ± 9.8 ms 693 ms ± 32 ms +1.71 %
10000_production-mode + exec 2.45 s ± 138 ms 2.38 s ± 88 ms -2.54 %
10000_production-mode_persistent-cold + exec 2.61 s ± 155 ms 2.59 s ± 207 ms -0.96 %
10000_production-mode_persistent-hot + exec 1.77 s ± 116 ms 1.83 s ± 58 ms +3.52 %
arco-pro_development-mode + exec 1.76 s ± 98 ms 1.77 s ± 141 ms +0.61 %
arco-pro_development-mode_hmr + exec 388 ms ± 2.3 ms 389 ms ± 4.4 ms +0.21 %
arco-pro_production-mode + exec 3.64 s ± 257 ms 3.69 s ± 229 ms +1.37 %
arco-pro_production-mode_generate-package-json-webpack-plugin + exec 3.75 s ± 314 ms 3.74 s ± 165 ms -0.41 %
arco-pro_production-mode_persistent-cold + exec 3.8 s ± 165 ms 3.8 s ± 106 ms +0.09 %
arco-pro_production-mode_persistent-hot + exec 2.34 s ± 79 ms 2.46 s ± 160 ms +5.31 %
arco-pro_production-mode_traverse-chunk-modules + exec 3.67 s ± 99 ms 3.76 s ± 173 ms +2.52 %
large-dyn-imports_development-mode + exec 2.11 s ± 29 ms 2.1 s ± 63 ms -0.20 %
large-dyn-imports_production-mode + exec 2.16 s ± 40 ms 2.16 s ± 33 ms -0.14 %
threejs_development-mode_10x + exec 1.53 s ± 22 ms 1.53 s ± 29 ms +0.29 %
threejs_development-mode_10x_hmr + exec 788 ms ± 39 ms 792 ms ± 23 ms +0.47 %
threejs_production-mode_10x + exec 5.25 s ± 61 ms 5.31 s ± 134 ms +1.15 %
threejs_production-mode_10x_persistent-cold + exec 5.35 s ± 65 ms 5.38 s ± 92 ms +0.68 %
threejs_production-mode_10x_persistent-hot + exec 4.5 s ± 44 ms 4.59 s ± 335 ms +2.03 %
10000_big_production-mode_disable-minimize + rss memory 8680 MiB ± 34.2 MiB 8678 MiB ± 87.3 MiB -0.02 %
10000_development-mode + rss memory 656 MiB ± 19.6 MiB 651 MiB ± 19.6 MiB -0.72 %
10000_development-mode_hmr + rss memory 1264 MiB ± 163 MiB 1261 MiB ± 150 MiB -0.21 %
10000_production-mode + rss memory 639 MiB ± 31 MiB 637 MiB ± 12.2 MiB -0.44 %
10000_production-mode_persistent-cold + rss memory 744 MiB ± 15.6 MiB 739 MiB ± 39.7 MiB -0.77 %
10000_production-mode_persistent-hot + rss memory 723 MiB ± 37.7 MiB 721 MiB ± 22.5 MiB -0.24 %
arco-pro_development-mode + rss memory 553 MiB ± 38.1 MiB 563 MiB ± 19.1 MiB +1.77 %
arco-pro_development-mode_hmr + rss memory 631 MiB ± 36 MiB 663 MiB ± 59.2 MiB +5.01 %
arco-pro_production-mode + rss memory 738 MiB ± 66.3 MiB 712 MiB ± 56.7 MiB -3.56 %
arco-pro_production-mode_generate-package-json-webpack-plugin + rss memory 730 MiB ± 23.1 MiB 726 MiB ± 43.4 MiB -0.47 %
arco-pro_production-mode_persistent-cold + rss memory 844 MiB ± 36.6 MiB 837 MiB ± 24 MiB -0.81 %
arco-pro_production-mode_persistent-hot + rss memory 695 MiB ± 19.9 MiB 698 MiB ± 22.3 MiB +0.47 %
arco-pro_production-mode_traverse-chunk-modules + rss memory 727 MiB ± 32.5 MiB 712 MiB ± 25.2 MiB -2.05 %
large-dyn-imports_development-mode + rss memory 642 MiB ± 4.5 MiB 640 MiB ± 5.05 MiB -0.22 %
large-dyn-imports_production-mode + rss memory 523 MiB ± 4.79 MiB 524 MiB ± 3.88 MiB +0.10 %
threejs_development-mode_10x + rss memory 551 MiB ± 32.9 MiB 535 MiB ± 31.6 MiB -2.83 %
threejs_development-mode_10x_hmr + rss memory 1145 MiB ± 125 MiB 1107 MiB ± 133 MiB -3.27 %
threejs_production-mode_10x + rss memory 865 MiB ± 36.9 MiB 860 MiB ± 24.7 MiB -0.61 %
threejs_production-mode_10x_persistent-cold + rss memory 968 MiB ± 136 MiB 951 MiB ± 94.9 MiB -1.76 %
threejs_production-mode_10x_persistent-hot + rss memory 870 MiB ± 25.8 MiB 857 MiB ± 60.4 MiB -1.50 %

Threshold exceeded: ["arco-pro_production-mode_persistent-hot + exec"]

Please sign in to comment.