Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add v1.2 ecosystem updates #9068

Merged
merged 4 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@

> 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.

Check warning on line 153 in website/docs/en/blog/announcing-1-2.mdx

View workflow job for this annotation

GitHub Actions / Spell check

"Colum" should be "Column".

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 @@

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

## 生态系统

### Angular 支持

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

Check warning on line 153 in website/docs/zh/blog/announcing-1-2.mdx

View workflow job for this annotation

GitHub Actions / Spell check

"Colum" should be "Column".

通过新发布的 `@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
Loading