Skip to content

Commit 0807a26

Browse files
committed
docs: add references to 1.0 blog
1 parent 3343c7a commit 0807a26

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

website/docs/en/blog/v1-0.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Rslib is a library development tool based on [Rsbuild](https://rsbuild.rs/) and
3030
The ecosystem already offers many library build tools that compile JavaScript and TypeScript and produce common output formats. Rslib builds on this foundation by bringing mature application build capabilities and ecosystem support to library development. Its key advantages include:
3131

3232
- **Supports multiple distribution options, including Module Federation**: Rslib can produce ESM and CJS output that is loaded directly by Node.js or processed further by downstream build tools. It can also generate UMD and IIFE output that browsers load directly through `<script>` tags. For cross-application runtime module loading, Rslib can also generate Module Federation output and provide support for local development and integration workflows.
33-
- **Keeps pace with evolving languages, frameworks, and standards**: Rslib actively follows advances in TypeScript, framework ecosystems, TC39 proposals, and web standards. For example, Rslib supports generating declaration files with TypeScript 7, enabling React Compiler, and importing non-JavaScript modules and assets using Import Attributes, WebAssembly ESM Integration, and Source Phase Imports.
33+
- **Keeps pace with evolving languages, frameworks, and standards**: Rslib actively follows advances in TypeScript, framework ecosystems, TC39 proposals, and web standards. For example, Rslib supports generating declaration files with TypeScript 7, enabling React Compiler, and importing non-JavaScript modules and assets using [Import Attributes](https://github.com/tc39/proposal-import-attributes), [WebAssembly ESM Integration](https://github.com/WebAssembly/esm-integration), and [Source Phase Imports](https://github.com/tc39/proposal-source-phase-imports).
3434
- **Builds on the Rspack and webpack ecosystems**: Rslib can use Rsbuild plugins as well as many plugins and loaders from the Rspack and webpack ecosystems. Developers can continue applying the knowledge and experience they have gained from these ecosystems to library development. When applications also use Rsbuild or Rspack, they can share common configurations and plugins with library projects, reducing duplicate maintenance.
3535

3636
## From 0.x to 1.0 \{#from-v0-to-v1}
@@ -57,7 +57,7 @@ A single configuration file can define multiple outputs, each with its own [form
5757

5858
Rslib places particular emphasis on ESM output. It generates ESM output that is designed for static analysis and supports code splitting, making it easier for downstream build tools to perform tree shaking and further processing. Rslib also optimizes the default handling of external dependencies in ESM output, preserving module-loading semantics from the source code more accurately and reducing behavioral differences introduced by build transformations.
5959

60-
In addition to common module formats, Rslib offers an experimental [executable generation](/config/lib/experiments#experimentsexe) capability. This feature is based on Node.js SEA and currently supports a single bundled entry targeting Node.js. The generated executable can run on target systems where Node.js is not installed, making it suitable for distributing CLIs and other Node.js programs.
60+
In addition to common module formats, Rslib offers an experimental [executable generation](/config/lib/experiments#experimentsexe) capability. This feature is based on [Node.js SEA](https://nodejs.org/api/single-executable-applications.html) and currently supports a single bundled entry targeting Node.js. The generated executable can run on target systems where Node.js is not installed, making it suitable for distributing CLIs and other Node.js programs.
6161

6262
### Flexible build modes \{#build-modes}
6363

website/docs/zh/blog/v1-0.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Rslib 是一款基于 [Rsbuild](https://rsbuild.rs/zh) 和 [Rspack](https://rspa
3030
社区中有不同类型的库构建工具,能够完成 JavaScript 和 TypeScript 代码的编译与常见产物输出。Rslib 在此基础上,将应用构建中成熟的能力与生态带到库构建,主要优势体现在以下方面:
3131

3232
- **支持包括 Module Federation 在内的多种交付方式**:Rslib 可以输出由 Node.js 直接加载或交给下游构建工具继续处理的 ESM、CJS 产物,也可以生成通过 `<script>` 标签在浏览器中直接加载的 UMD 和 IIFE 产物。对于跨应用运行时加载的场景,Rslib 还可以生成 Module Federation 产物,并提供配套的本地开发与联调能力。
33-
- **持续跟进语言、框架与标准的演进**:Rslib 积极跟进 TypeScript、框架生态以及 TC39 提案和 Web 标准的演进。例如,Rslib 已支持使用 TypeScript 7 生成类型声明、启用 React Compiler,以及通过 Import AttributesWebAssembly ESM Integration 和 Source Phase Imports 等方式引用非 JavaScript 模块与资源。
33+
- **持续跟进语言、框架与标准的演进**:Rslib 积极跟进 TypeScript、框架生态以及 TC39 提案和 Web 标准的演进。例如,Rslib 已支持使用 TypeScript 7 生成类型声明、启用 React Compiler,以及通过 [Import Attributes](https://github.com/tc39/proposal-import-attributes)[WebAssembly ESM Integration](https://github.com/WebAssembly/esm-integration)[Source Phase Imports](https://github.com/tc39/proposal-source-phase-imports) 等方式引用非 JavaScript 模块与资源。
3434
- **复用 Rspack 与 webpack 生态的能力和工程经验**:Rslib 可以使用 Rsbuild 插件,以及 Rspack 和 webpack 生态中的许多插件与 loader。开发者在这套生态中积累的知识和经验可以继续用于库构建。如果应用项目也使用 Rsbuild 或 Rspack,还可以共享通用配置和插件,减少重复维护。
3535

3636
## 从 0.x 到 1.0 \{#from-v0-to-v1}
@@ -57,7 +57,7 @@ Rslib 是一款基于 [Rsbuild](https://rsbuild.rs/zh) 和 [Rspack](https://rspa
5757

5858
在 ESM 输出方面,Rslib 进行了重点优化,能够生成对静态分析友好并支持代码分割的 ESM 产物,方便下游构建工具进行 tree shaking 和二次构建。对于 ESM 产物中的 external 依赖,Rslib 也优化了默认处理方式,能够更准确地保留源码中的模块加载语义,减少构建转换带来的行为差异。
5959

60-
除了常见的模块产物,Rslib 还提供了实验性的 [可执行文件生成](/config/lib/experiments#experimentsexe) 能力。该能力基于 Node.js SEA,目前适用于 bundle 模式下的单入口 Node.js 产物。生成的可执行文件可以在未安装 Node.js 的目标系统中运行,适合分发 CLI 等 Node.js 程序。
60+
除了常见的模块产物,Rslib 还提供了实验性的 [可执行文件生成](/config/lib/experiments#experimentsexe) 能力。该能力基于 [Node.js SEA](https://nodejs.org/api/single-executable-applications.html),目前适用于 bundle 模式下的单入口 Node.js 产物。生成的可执行文件可以在未安装 Node.js 的目标系统中运行,适合分发 CLI 等 Node.js 程序。
6161

6262
### 灵活的构建模式 \{#build-modes}
6363

0 commit comments

Comments
 (0)