You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/docs/en/config/lib/bundle.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ We should specify the entry file for the build.
13
13
14
14
### bundle: true
15
15
16
-
When `bundle` is set to `true`, the entry should be set to the entry file. The default entry in bundle mode is `src/index.(ts|js|tsx|jsx|mjs|cjs)`. You should make sure that the entry file exists, or customize entry through the [source.entry](https://rsbuild.rs/config/source/entry) configuration.
16
+
When `bundle` is set to `true`, the entry should be set to the entry file. The default entry in bundle mode is `src/index.(ts|js|tsx|jsx|mjs|cjs)`. You should make sure that the entry file exists, or customize the entry through the [source.entry](https://rsbuild.rs/config/source/entry) configuration.
Copy file name to clipboardExpand all lines: website/docs/en/config/lib/out-base.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,6 +53,6 @@ dist
53
53
54
54
::: tip
55
55
56
-
When the project needs to generate declaration files, to ensure that the generated declaration files and JS files maintain a consistent output directory structure, if you modify the `outBase` configuration, you need to make sure that the [rootDir](https://www.typescriptlang.org/tsconfig/rootDir.html) in `tsconfig.json` to the same path.
56
+
When the project needs to generate declaration files, to ensure that the generated declaration files and JS files maintain a consistent output directory structure, if you modify the `outBase` configuration, you need to make sure that the [rootDir](https://www.typescriptlang.org/tsconfig/rootDir.html) in `tsconfig.json`is set to the same path.
Copy file name to clipboardExpand all lines: website/docs/en/config/lib/shims.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -76,7 +76,7 @@ Options:
76
76
);
77
77
```
78
78
79
-
- `false`: the `import.meta.url` will be leave as is, which will cause a runtime error when running the output.
79
+
- `false`: the `import.meta.url` will be left as is, which will cause a runtime error when running the output.
80
80
81
81
## shims.esm
82
82
@@ -110,7 +110,7 @@ Options:
110
110
console.log(src_filename);
111
111
```
112
112
113
-
- `false`: the `__filename` will be leave as is, which will cause a runtime error when running the output.
113
+
- `false`: the `__filename` will be left as is, which will cause a runtime error when running the output.
114
114
115
115
### shims.esm.\_\_dirname
116
116
@@ -139,7 +139,7 @@ Options:
139
139
console.log(src_dirname);
140
140
```
141
141
142
-
- `false`: the `__dirname` will be leave as is, which will cause a runtime error when running the output.
142
+
- `false`: the `__dirname` will be left as is, which will cause a runtime error when running the output.
143
143
144
144
### shims.esm.require
145
145
@@ -149,7 +149,7 @@ Whether to inject shims for the global `require` of CommonJS in ESM output.
149
149
150
150
Options:
151
151
152
-
- `true`: when [format](/config/lib/format) is `esm`, there will be a `require` that created by `createRequire` at the beginning of the output which can be accessed in source code like the global `require` like CommonJS.
152
+
- `true`: when [format](/config/lib/format) is `esm`, there will be a `require` that is created by `createRequire` at the beginning of the output which can be accessed in source code like the global `require` like CommonJS.
153
153
154
154
For example, given the following source code:
155
155
@@ -181,4 +181,4 @@ Options:
181
181
lazyFn('./other.js', require);
182
182
```
183
183
184
-
- `false`: the `require` will be leave as is, which will cause a runtime error when running the output.
184
+
- `false`: the `require` will be left as is, which will cause a runtime error when running the output.
0 commit comments