Skip to content

Commit f5b339c

Browse files
committed
chore: update
1 parent d7ffb84 commit f5b339c

File tree

13 files changed

+1
-17
lines changed

13 files changed

+1
-17
lines changed

biome.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/2.0.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.0.5/schema.json",
33
"assist": {
44
"actions": {
55
"source": {

website/docs/en/blog/introducing-rslib.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ Beyond common JavaScript library development solutions, based on Rspack and the
133133
- **Share Rspack and Rsbuild Ecosystem**
134134

135135
Based on the Rspack and Rsbuild ecosystem, Rslib can reuse a series of ecosystem features, including but not limited to:
136-
137136
- Use [Storybook](https://storybook.rsbuild.rs/guide/integrations/rslib.html) to directly read Rslib's configuration files for UI component library development debugging.
138137
- Use [Rsdoctor](https://rsdoctor.rs/) for build performance and output analysis.
139138
- Use [Node.js polyfill](https://github.com/rspack-contrib/rsbuild-plugin-node-polyfill) plugin to develop cross-runtime libraries.

website/docs/en/guide/advanced/dts.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ TypeScript Declaration Files provide type information for JavaScript code. Decla
1919
Bundle declaration files involves bundling multiple TypeScript declaration files into a single declaration file.
2020

2121
- **Pros:**
22-
2322
- **Simplified Management**: Simplifies the management and referencing of type files.
2423
- **Easy Distribution**: Reduces the number of files users need to handle when using the library.
2524

@@ -32,7 +31,6 @@ Bundle declaration files involves bundling multiple TypeScript declaration files
3231
Bundleless declaration files involves generating a separate declaration file for each module in the library, just like `tsc` does.
3332

3433
- **Pros:**
35-
3634
- **Modular**: Each module has its own type definitions, making maintenance and debugging easier.
3735
- **Flexibility**: Suitable for large projects, avoiding the complexity of a single file.
3836

website/docs/en/guide/advanced/module-federation.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ Then run the `dev` command can start the Module Federation development mode, ena
175175
First, set up Storybook with the Rslib project. You can refer to the [Storybook chapter](/guide/advanced/storybook) to learn how to do this. In this chapter, we will use React as the framework for our example.
176176

177177
1. Install the following Storybook addons to let Storybook work with Rslib Module Federation:
178-
179178
- [storybook-addon-rslib](https://www.npmjs.com/package/storybook-addon-rslib): Storybook addon that let Storybook to load the Rslib config.
180179
- [@module-federation/storybook-addon](https://www.npmjs.com/package/@module-federation/rsbuild-plugin): Storybook addon that set up the Module Federation config for Storybook.
181180

website/docs/en/guide/advanced/output-compatibility.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,6 @@ export default defineConfig({
9999

100100
- For projects with `bundle` enabled, the Node Polyfill will be injected and included in the output.
101101
- For projects with `bundle` disabled, polyfills are not injected into the output by default. To avoid inlining the polyfill in every module, the modules are externalized and need to be added to dependencies manually, follow these steps:
102-
103102
1. Configure `output.external` with `resolvedPolyfillToModules`, which you can import from [@rsbuild/plugin-node-polyfill](https://github.com/rspack-contrib/rsbuild-plugin-node-polyfill). This will externalize the polyfill modules to the installed polyfill dependencies.
104103
2. Install used polyfill modules as dependencies.
105104

website/docs/en/guide/advanced/storybook.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ Set up a Storybook project with an existing Rslib project. To use React, Vue 3,
2424
Using React as an example, at this step you need to:
2525

2626
1. Install the dependencies for Storybook Rsbuild React framework. The essential ones include
27-
2827
- [storybook](https://www.npmjs.com/package/storybook): The Storybook core.
2928
- [@storybook/addon-essentials](https://www.npmjs.com/package/@storybook/addon-essentials): a curated collection of addons to bring out the best of Storybook.
3029
- [@rsbuild/core](https://www.npmjs.com/package/@rsbuild/core): Storybook builder.

website/docs/en/guide/basic/output-format.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,12 @@ shipping only ESM is the best choice for libraries that are intended to be used
5050
The community is migrating to ESM, but there are still many projects using CJS. If you want to support both ESM and CJS, you can publish a dual package. For most library authors, offering dual formats is a safer and smoother way to access the best of both worlds. You could read antfu' blog post [Publish ESM and CJS packages](https://antfu.me/posts/publish-esm-and-cjs) for more details.
5151

5252
- **Pros:**
53-
5453
- Wider compatibility: Dual packages support both modern ESM environments and legacy CJS environments, ensuring broader usage across different ecosystems.
5554
- Gradual migration: Developers can gradually transition from CJS to ESM without breaking existing projects, allowing for smoother adoption of the new standard.
5655
- Flexibility for consumers: Users of the package can choose which module system best fits their project, providing flexibility in different build tools and environments.
5756
- Cross-runtime support: Dual packages can work in multiple runtimes, such as Node.js and browsers, without requiring additional bundling or transpilation.
5857

5958
- **Cons:**
60-
6159
- Increased complexity: Maintaining two module formats adds complexity to the build process, requiring additional configuration and testing to ensure both versions work correctly.
6260
- Dual package hazard: Mixing ESM and CJS can lead to issues such as broken instanceof checks or unexpected behavior when dependencies are loaded in different formats.
6361

website/docs/zh/blog/introducing-rslib.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ Rslib 提供了一套全面的库构建解决方案,涵盖了目前大部分
133133
- **共享 Rspack 和 Rsbuild 生态**
134134

135135
基于 Rspack 和 Rsbuild 生态,Rslib 能复用一系列生态能力,包括但不限于:
136-
137136
- 使用 [Storybook](https://storybook.rsbuild.rs/guide/integrations/rslib.html) 直接读取 Rslib 的配置文件进行 UI 组件库开发调试。
138137
- 使用 [Rsdoctor](https://rsdoctor.rs/) 进行构建性能及产物分析。
139138
- 使用 [Node.js polyfill](https://github.com/rspack-contrib/rsbuild-plugin-node-polyfill) 插件开发跨运行时的库。

website/docs/zh/guide/advanced/dts.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ TypeScript 类型声明文件提供 JavaScript 代码的类型信息。类型声
1919
Bundle 类型将多个 TypeScript 声明文件打包到一个声明文件中。
2020

2121
- **优势:**
22-
2322
- **简化管理**: 简化类型文件的管理和引用。
2423
- **容易分发**: 减少用户使用库时需要处理的文件数量。
2524

@@ -32,7 +31,6 @@ Bundle 类型将多个 TypeScript 声明文件打包到一个声明文件中。
3231
Bundleless 类型为库中的每个模块生成单独的声明文件,就像 `tsc` 一样。
3332

3433
- **优势:**
35-
3634
- **模块化**: 每个模块都有自己的类型定义,使维护和调试更容易。
3735
- **灵活**: 适合大型项目,避免单个文件的复杂性。
3836

website/docs/zh/guide/advanced/module-federation.mdx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ Rslib 支持使用 Storybook 开发 Rslib 模块联邦项目。
175175
首先,在 Rslib 项目中配置 Storybook。你可以参考 [Storybook 章节](/guide/advanced/storybook)来了解如何执行此操作。在本章中,我们将使用 React 框架作为示例。
176176

177177
1. 安装以下 Storybook addon,让 Storybook 与 Rslib 模块联邦一起使用:
178-
179178
- [storybook-addon-rslib](https://www.npmjs.com/package/storybook-addon-rslib): Storybook addon 会让 Storybook 加载 Rslib 配置.
180179
- [@module-federation/storybook-addon](https://www.npmjs.com/package/@module-federation/rsbuild-plugin): Storybook 插件,为 Storybook 设置模块联邦配置。
181180

0 commit comments

Comments
 (0)