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/auto-extension.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
@@ -15,7 +15,7 @@ By default that when `autoExtension` is set to `true`, the file extension will b
15
15
16
16
:::warning
17
17
18
-
When [bundle](/config/lib/bundle) is set to `false` that as known as bundleless mode, you should write full path instead of ignoring directory indexes (e.g. `'./foo/index.js'`) in source code.
18
+
When [bundle](/config/lib/bundle) is set to `false` that as known as bundleless mode, you should write full path instead of ignoring directory indexes (e.g. using `'./foo'` as a shorthand for `'./foo/index.js'`) in source code.
19
19
20
20
For example, if `foo` is a folder, you need to rewrite `import * from './foo'` to `import * from './foo/index'`.
Copy file name to clipboardExpand all lines: website/docs/en/config/lib/banner.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ type Banner = {
16
16
17
17
-**Default:**`{}`
18
18
19
-
Inject content into the top of each JS, CSS or DTS file.
19
+
Inject content into the top of each JavaScript, CSS or DTS output file.
20
20
21
21
## Object Type
22
22
@@ -25,25 +25,25 @@ Inject content into the top of each JS, CSS or DTS file.
25
25
-**Type:**`string`
26
26
-**Default:**`undefined`
27
27
28
-
Inject content into the top of each JS file.
28
+
Inject content into the top of each JavaScript output file.
29
29
30
30
### banner.css
31
31
32
32
-**Type:**`string`
33
33
-**Default:**`undefined`
34
34
35
-
Inject content into the top of each CSS file.
35
+
Inject content into the top of each CSS output file.
36
36
37
37
### banner.dts
38
38
39
39
-**Type:**`string`
40
40
-**Default:**`undefined`
41
41
42
-
Inject content into the top of each DTS file.
42
+
Inject content into the top of each DTS output file.
43
43
44
44
## Notice
45
45
46
-
The banner content in JS/CSS file is based on the [BannerPlugin](https://rspack.dev/plugins/webpack/banner-plugin) of Rspack. You should notice the following points:
46
+
The banner content in JavaScript and CSS file is based on the [BannerPlugin](https://rspack.dev/plugins/webpack/banner-plugin) of Rspack. You should notice the following points:
47
47
48
48
-`raw: true` is enabled by default, so the banner content will be injected as a raw string instead of wrapping in a comment. So if you want to inject a comment, you should add `/*` and `*/` or other comment syntax by yourself.
49
49
- The `stage` option is set to the stage after the JavaScript and CSS files are optimized, thus preventing the banner content from being optimized away.
@@ -73,6 +73,6 @@ export default {
73
73
74
74
:::warning
75
75
76
-
The banner content in DTS files is handled differently from JS/CSS files. It is written directly using the file system API, so setting `BannerPlugin` will not affect it.
76
+
The banner content in DTS files is handled differently from JavaScript and CSS output files. It is written directly using the file system API, so setting `BannerPlugin` will not affect it.
Copy file name to clipboardExpand all lines: website/docs/en/config/lib/dts.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -65,7 +65,7 @@ Whether to bundle the DTS files.
65
65
66
66
If you want to [bundle DTS](/guide/advanced/dts#bundle-dts) files, you should:
67
67
68
-
1. Install `@microsoft/api-extractor` as a development dependency, which is the underlying tool used for bundling DTS files.
68
+
1. Install [@microsoft/api-extractor](https://www.npmjs.com/package/@microsoft/api-extractor) as a development dependency, which is the underlying tool used for bundling DTS files.
69
69
70
70
import { PackageManagerTabs } from'@theme';
71
71
@@ -88,7 +88,7 @@ export default {
88
88
89
89
::: note
90
90
91
-
[@microsoft/api-extractor](https://github.com/microsoft/rushstack/tree/main/apps/api-extractor) only supports bundle DTS for single entry. If you want to generate bundle DTS for multiple entries, you can add extra lib configuration in [lib](/config/lib/) field to split multiple entries into multiple lib configurations.
91
+
[@microsoft/api-extractor](https://www.npmjs.com/package/@microsoft/api-extractor) only supports bundle DTS for single entry. If you want to generate bundle DTS for multiple entries, you can add extra lib configuration in [lib](/config/lib/) field to split multiple entries into multiple lib configurations.
Copy file name to clipboardExpand all lines: website/docs/en/config/lib/footer.mdx
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ type Footer = {
16
16
17
17
-**Default:**`{}`
18
18
19
-
Inject content into the bottom of each JS, CSS or DTS file.
19
+
Inject content into the bottom of each JavaScript, CSS or DTS file.
20
20
21
21
## Object Type
22
22
@@ -25,25 +25,25 @@ Inject content into the bottom of each JS, CSS or DTS file.
25
25
-**Type:**`string`
26
26
-**Default:**`undefined`
27
27
28
-
Inject content into the bottom of each JS file.
28
+
Inject content into the bottom of each JavaScript output file.
29
29
30
30
### footer.css
31
31
32
32
-**Type:**`string`
33
33
-**Default:**`undefined`
34
34
35
-
Inject content into the bottom of each CSS file.
35
+
Inject content into the bottom of each CSS output file.
36
36
37
37
### footer.dts
38
38
39
39
-**Type:**`string`
40
40
-**Default:**`undefined`
41
41
42
-
Inject content into the bottom of each DTS file.
42
+
Inject content into the bottom of each DTS output file.
43
43
44
44
## Notice
45
45
46
-
The footer content in JS/CSS file is based on the [BannerPlugin](https://rspack.dev/plugins/webpack/banner-plugin) of Rspack. You should notice the following points:
46
+
The footer content in JavaScript and CSS file is based on the [BannerPlugin](https://rspack.dev/plugins/webpack/banner-plugin) of Rspack. You should notice the following points:
47
47
48
48
-`raw: true` is enabled by default, so the footer content will be injected as a raw string instead of wrapping in a comment. So if you want to inject a comment, you should add `/*` and `*/` or other comment syntax by yourself.
49
49
- The `stage` option is set to the stage after the JavaScript and CSS files are optimized, thus preventing the footer content from being optimized away.
@@ -74,6 +74,6 @@ export default {
74
74
75
75
:::warning
76
76
77
-
The footer content in DTS files is handled differently from JS/CSS files. It is written directly using the file system API, so setting `BannerPlugin` will not affect it.
77
+
The footer content in DTS files is handled differently from JavaScript and CSS files. It is written directly using the file system API, so setting `BannerPlugin` will not affect it.
Copy file name to clipboardExpand all lines: website/docs/en/config/lib/syntax.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -42,7 +42,7 @@ export default {
42
42
43
43
## Set Browserslist Query
44
44
45
-
You can also set the Browserslist query, such as `last 2 versions`, `> 1%`, `node >= 16`, `chrome >= 80`, etc.
45
+
You can also set the [Browserslist query](https://browsersl.ist/), such as `last 2 versions`, `> 1%`, `node >= 16`, `chrome >= 80`, etc.
46
46
47
47
```ts title="rslib.config.ts"
48
48
exportdefault {
@@ -56,7 +56,7 @@ export default {
56
56
57
57
## Mix ECMAScript Version and Browserslist Query
58
58
59
-
You can also mix ECMAScript version and Browserslist query, such as `es2015` and `node 20`. We will turn ECMAScript Version into Browserslist query, and then merge them together.
59
+
You can also mix ECMAScript version and Browserslist query, such as `es2015` and `node 20`. Rslib will turn ECMAScript Version into Browserslist query, and then merge them together.
0 commit comments