Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
12 changes: 6 additions & 6 deletions website/docs/en/community/releases/v1-0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Rsbuild is built on top of Rspack. We designed Rsbuild with an easy-to-use, Type
When developing Rsbuild, we learned best practices from the best tools in the community and focused on two usage scenarios:

- As a lightweight build tool: Helps developers quickly setup web applications with out-of-the-box support for CSR applications.
- As a shared infrastructure: Provides [JavaScript API](https://rsbuild.dev/api/start/) and [Plugin API](https://rsbuild.dev/plugins/dev/) for higher-level tools and frameworks, allowing developers to easily build their tools or frameworks on top of Rsbuild.
- As a shared infrastructure: Provides [JavaScript API](/api/start/) and [Plugin API](/plugins/dev/) for higher-level tools and frameworks, allowing developers to easily build their tools or frameworks on top of Rsbuild.

## Performance

Expand All @@ -54,7 +54,7 @@ Compared to the [Rspack CLI](https://npmjs.com/package/@rspack/cli), Rsbuild pro

This is because Rspack CLI needs to maintain compatibility with the [webpack-cli](https://npmjs.com/package/webpack-cli). It relies on the `webpack-dev-server` and provides the same default behavior as webpack, which has some performance limitations. Rsbuild, on the other hand, is designed for modern web development. We have reimplemented a lighter CLI, dev server, and build process for Rsbuild, resulting in faster startup speeds and fewer npm dependencies.

> See the [Rsbuild Introduction](https://rsbuild.dev/guide/start/index) for more comparisons between Rsbuild, webpack, Vue CLI, and Vite.
> See the [Rsbuild Introduction](/guide/start/index) for more comparisons between Rsbuild, webpack, Vue CLI, and Vite.

## Who is using

Expand All @@ -80,15 +80,15 @@ As shown, the API style of the Rsbuild plugin is similar to esbuild, it can be d

## How to use 1.0

- If you haven't used Rsbuild before, you can experience it through the [CodeSandbox example](https://codesandbox.io/p/github/rspack-contrib/rsbuild-codesandbox-example) or refer to the [Quick start](https://rsbuild.dev/guide/start/quick-start) to use Rsbuild.
- If you are using Rsbuild 0.7 or earlier, please note that 1.0 includes some breaking changes. You can refer to the [Migrating from 0.x](https://rsbuild.dev/guide/migration/rsbuild-0-x) document to upgrade.
- Rsbuild also provides migration guides for projects that use webpack, CRA, Vue CLI, etc. See [Migrate from Existing Projects](https://rsbuild.dev/guide/start/quick-start#migrate-from-existing-projects).
- If you haven't used Rsbuild before, you can experience it through the [CodeSandbox example](https://codesandbox.io/p/github/rspack-contrib/rsbuild-codesandbox-example) or refer to the [Quick start](/guide/start/quick-start) to use Rsbuild.
- If you are using Rsbuild 0.7 or earlier, please note that 1.0 includes some breaking changes. You can refer to the [Migrating from 0.x](/guide/migration/rsbuild-0-x) document to upgrade.
- Rsbuild also provides migration guides for projects that use webpack, CRA, Vue CLI, etc. See [Migrate from Existing Projects](/guide/start/quick-start#migrate-from-existing-projects).

> Give a star 🌟 to the [Rsbuild GitHub repository](https://github.com/web-infra-dev/rsbuild).

## What's next

Rsbuild 1.0 provides several advanced features for the development of enterprise applications and higher-level tools, such as the [multi-environment build API](https://rsbuild.dev/guide/advanced/environments), [SSR API](https://rsbuild.dev/guide/advanced/ssr), [plugin API](https://rsbuild.dev/plugins/dev/), [Module Federation support](https://rsbuild.dev/guide/advanced/module-federation), and [library build (Rslib)](https://github.com/web-infra-dev/rslib). We plan to continue to enhance these features to better support the development of the Rsbuild ecosystem.
Rsbuild 1.0 provides several advanced features for the development of enterprise applications and higher-level tools, such as the [multi-environment build API](/guide/advanced/environments), [SSR API](/guide/advanced/ssr), [plugin API](/plugins/dev/), [Module Federation support](/guide/advanced/module-federation), and [library build (Rslib)](https://github.com/web-infra-dev/rslib). We plan to continue to enhance these features to better support the development of the Rsbuild ecosystem.

In the next 12 to 18 months, Rsbuild will evolve together with Rspack, adopting Rspack's new features as soon as they become available. These features include persistent caching, faster HMR, and TypeScript-based optimizations. For more details, see [Rspack - What's next](https://rspack.dev/blog/announcing-1-0#whats-next).

Expand Down
2 changes: 1 addition & 1 deletion website/docs/en/config/performance/build-cache.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export default defineConfig({

`buildDependencies` is an arrays of additional code dependencies for the build. Rspack will use a hash of each of these items and all dependencies to invalidate the filesystem cache.

Equivalent to Rspack's [cache.buildDependencies](https://rspack.dev/zh/config/experiments#cachebuilddependencies) option.
Equivalent to Rspack's [cache.buildDependencies](https://rspack.dev/config/experiments#cachebuilddependencies) option.

#### Default value

Expand Down
2 changes: 1 addition & 1 deletion website/docs/en/plugins/dev/core.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const pluginBar = {

For example, if you register both the Foo and Bar plugins mentioned above, the Foo plugin will not take effect because the Bar plugin declares the removal of the Foo plugin.

It should be noted that if the current plugin is registered as a [specific environment plugin](https://rsbuild.dev/guide/advanced/environments#add-plugins-for-specified-environment), only the removal of plugins in the same environment is supported, and global plugins cannot be removed.
It should be noted that if the current plugin is registered as a [specific environment plugin](/guide/advanced/environments#add-plugins-for-specified-environment), only the removal of plugins in the same environment is supported, and global plugins cannot be removed.

## api.context

Expand Down
2 changes: 1 addition & 1 deletion website/docs/zh/community/releases/v0-5.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ async function startCustomServer() {
}
```

详情可参考 [Rsbuild - createDevServer](https://rsbuild.dev/zh/api/javascript-api/instance#rsbuildcreatedevserver)。
详情可参考 [Rsbuild - createDevServer](/api/javascript-api/instance#rsbuildcreatedevserver)。

## 🍭 重构 SVGR 插件

Expand Down
12 changes: 6 additions & 6 deletions website/docs/zh/community/releases/v1-0.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Rsbuild 是以 Rspack 为核心实现的,我们为 Rsbuild 设计了易于使
在实现 Rsbuild 的过程中,我们向社区中优秀的工具学习最佳实践,并聚焦于两个使用场景来设计 Rsbuild:

- 作为一个轻量的构建工具:帮助开发者快速搭建 Web 应用,为 CSR 应用提供开箱即用的支持。
- 作为一个共享的基础设施:为上层工具和框架提供 [JavaScript API](https://rsbuild.dev/api/start/) 和 [插件 API](https://rsbuild.dev/plugins/dev/),允许开发者基于 Rsbuild 来开发属于自己的工具或框架,轻松实现 SSR、SSG 等特性。
- 作为一个共享的基础设施:为上层工具和框架提供 [JavaScript API](/api/start/) 和 [插件 API](/plugins/dev/),允许开发者基于 Rsbuild 来开发属于自己的工具或框架,轻松实现 SSR、SSG 等特性。

## 性能

Expand All @@ -54,7 +54,7 @@ Rsbuild 是以 Rspack 为核心实现的,我们为 Rsbuild 设计了易于使

这是因为 Rspack CLI 需要保持对 [webpack-cli](https://npmjs.com/package/webpack-cli) 的兼容性,它依赖了 `webpack-dev-server`,并提供与 webpack 一致的默认行为,因此性能受到了一定限制。而 Rsbuild 是面向现代 web 开发设计的,我们为 Rsbuild 重新实现了更轻量的 CLI、开发服务器和构建流程,使其具备更快的启动速度和更少的 npm 依赖。

> 参考 [Rsbuild 介绍](https://rsbuild.dev/zh/guide/start/index) 了解 Rsbuild 与 webpack、Vue CLI、Vite 的对比。
> 参考 [Rsbuild 介绍](/zh/guide/start/index) 了解 Rsbuild 与 webpack、Vue CLI、Vite 的对比。

## 谁在使用

Expand All @@ -80,15 +80,15 @@ Rsbuild 的插件生态正在不断发展,目前社区中已经有超过 50

## 如何使用 1.0

- 如果你还未使用过 Rsbuild,可以通过 [CodeSandbox 示例](https://codesandbox.io/p/github/rspack-contrib/rsbuild-codesandbox-example) 来体验,也可以参考 [快速上手](https://rsbuild.dev/zh/guide/start/quick-start) 来接入 Rsbuild。
- 如果你正在使用 Rsbuild 0.7 或更早的版本,请留意 1.0 版本包含一些不兼容更新,可参考 [从 Rsbuild 0.x 迁移](https://rsbuild.dev/zh/guide/migration/rsbuild-0-x) 文档进行升级。
- Rsbuild 也提供了 webpack、CRA、Vue CLI 等项目的迁移指南,详见 [从现有项目迁移](https://rsbuild.dev/zh/guide/start/quick-start#%E4%BB%8E%E7%8E%B0%E6%9C%89%E9%A1%B9%E7%9B%AE%E8%BF%81%E7%A7%BB)。
- 如果你还未使用过 Rsbuild,可以通过 [CodeSandbox 示例](https://codesandbox.io/p/github/rspack-contrib/rsbuild-codesandbox-example) 来体验,也可以参考 [快速上手](/zh/guide/start/quick-start) 来接入 Rsbuild。
- 如果你正在使用 Rsbuild 0.7 或更早的版本,请留意 1.0 版本包含一些不兼容更新,可参考 [从 Rsbuild 0.x 迁移](/zh/guide/migration/rsbuild-0-x) 文档进行升级。
- Rsbuild 也提供了 webpack、CRA、Vue CLI 等项目的迁移指南,详见 [从现有项目迁移](/zh/guide/start/quick-start#%E4%BB%8E%E7%8E%B0%E6%9C%89%E9%A1%B9%E7%9B%AE%E8%BF%81%E7%A7%BB)。

> 欢迎为 [Rsbuild GitHub 仓库](https://github.com/web-infra-dev/rsbuild) 点亮一颗 Star 🌟。

## 下一步

Rsbuild 1.0 为企业级应用和上层工具开发提供了一些高级特性,例如 [多环境构建 API](https://rsbuild.dev/zh/guide/advanced/environments)、[服务端渲染 API](https://rsbuild.dev/zh/guide/advanced/ssr)、[插件 API](https://rsbuild.dev/plugins/dev/)、[模块联邦支持](https://rsbuild.dev/zh/guide/advanced/module-federation) 和 [Library 构建(Rslib)](https://github.com/web-infra-dev/rslib),我们计划继续完善这些特性,更好地支持 Rsbuild 生态发展。
Rsbuild 1.0 为企业级应用和上层工具开发提供了一些高级特性,例如 [多环境构建 API](/zh/guide/advanced/environments)、[服务端渲染 API](/zh/guide/advanced/ssr)、[插件 API](/plugins/dev/)、[模块联邦支持](/zh/guide/advanced/module-federation) 和 [Library 构建(Rslib)](https://github.com/web-infra-dev/rslib),我们计划继续完善这些特性,更好地支持 Rsbuild 生态发展。

在接下来的 12~18 个月里,Rsbuild 将与 Rspack 共同演进,在第一时间应用 Rspack 的新特性,例如持久化缓存、更快的 HMR、基于 TypeScript 的优化等。请参考 [Rspack - 下一步](https://rspack.dev/zh/blog/announcing-1-0#%E4%B8%8B%E4%B8%80%E6%AD%A5) 了解更多。

Expand Down
Loading