Skip to content

Commit 475a3f2

Browse files
authored
docs: polish bundleless glossary (#840)
1 parent da0c8ce commit 475a3f2

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
"vitest": "^3.0.8",
6060
"zx": "^8.4.1"
6161
},
62-
"packageManager": "pnpm@10.4.1",
62+
"packageManager": "pnpm@10.6.2",
6363
"engines": {
6464
"node": ">=18.0.0",
6565
"pnpm": ">=10.0.0"

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
So first let's understand bundle and bundleless.
66

7-
A bundle is a package of build artifacts, which may be a single file or multiple files based on a certain [code splitting strategy](https://esbuild.github.io/api/#splitting).
7+
Bundle refers to the process of packaging the build outputs, which may be a single file or multiple files based on a certain [code splitting strategy](https://esbuild.github.io/api/#splitting).
88

9-
bundleless, on the other hand, means that each source file is compiled and built separately, but not bundled together. Each output file can be found with its corresponding source code file. The process of bundleless build can also be understood as the process of code conversion of source files only.
9+
Bundleless, on the other hand, means that each source file is compiled and built separately, but not bundled together. Each output file can be found with its corresponding source code file. The process of bundleless build can also be understood as the process of code transformation of source files only.
1010

1111
![rslib-bundleless-mode](https://assets.rspack.dev/rslib/rslib-bundleless-mode.png)
1212

website/docs/en/guide/faq/features.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
### How to skip the preprocessing of Less / Sass files in bundleless mode?
66

7-
Bundleless means that each source file is compiled and built separately, which can be understood as the process of code conversion of source files only. To skip the preprocessing of `.less/.scss` files, you need to:
7+
Bundleless means that each source file is compiled and built separately, which can be understood as the process of code transformation of source files only. To skip the preprocessing of `.less/.scss` files, you need to:
88

99
1. Set `source.entry` to remove `.less/.scss` files from the entry.
1010
2. Set `output.copy` to copy `.less/.scss` files to the output directory.

website/docs/en/guide/start/glossary.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ CJS stands for [CommonJS](https://nodejs.org/api/modules.html#modules-commonjs-m
1919

2020
## Bundleless
2121

22-
Bundleless refers to a development mode that departs from the traditional practice of bundling multiple JavaScript / TypeScript files into a single or few output files that are then served to the app. Instead, it transforms each file.
22+
Bundleless means that each source file is compiled and built separately, but not bundled together. Each output file can be found with its corresponding source code file. The process of bundleless build can also be understood as the process of code transformation of source files only.
2323

2424
## Module Federation
2525

website/docs/zh/guide/basic/output-structure.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
所谓 bundle 是指对构建产物进行打包,构建产物可能是一个文件,也有可能是基于一定的 [代码拆分策略](https://esbuild.github.io/api/#splitting) 得到的多个文件。
88

9-
而 bundleless,则是指对每个源文件单独进行编译构建,但是并不将它们打包在一起。每一个产物文件都可以找到与之相对应的源码文件。bundleless 构建的过程,也可以理解为仅对源文件进行代码转换的过程。
9+
而 bundleless,则是指对每个源文件单独进行编译构建,但是并不将它们打包在一起。每一个产物文件都可以找到与之相对应的源码文件。Bundleless 构建的过程,也可以理解为仅对源文件进行代码转换的过程。
1010

1111
![rslib-bundleless-mode](https://assets.rspack.dev/rslib/rslib-bundleless-mode.png)
1212

website/docs/zh/guide/start/glossary.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ CJS 代表 [CommonJS](https://nodejs.org/api/modules.html#modules-commonjs-modul
1919

2020
## Bundleless
2121

22-
Bundleless 是指一种开发模式,它与将多个 JavaScript/TypeScript 文件 bundle 到单个或很少的输出文件中,然后再将其提供给应用的传统做法不同。相反,它为每个文件都进行 transform 转译
22+
Bundleless 是指对每个源文件单独进行编译构建,但是并不将它们打包在一起。每一个产物文件都可以找到与之相对应的源码文件。Bundleless 构建的过程,也可以理解为仅对源文件进行代码转换的过程
2323

2424
## 模块联邦
2525

0 commit comments

Comments
 (0)