-
Notifications
You must be signed in to change notification settings - Fork 369
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
64 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
packages/document/main-doc/docs/en/configure/app/output/source-map.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
title: sourceMap | ||
configName: output.sourceMap | ||
--- | ||
|
||
# output.sourceMap | ||
|
||
- **Type:** | ||
|
||
```ts | ||
type SourceMap = { | ||
js?: Rspack.Configuration['devtool']; | ||
css?: boolean; | ||
}; | ||
``` | ||
|
||
- **Default:** | ||
|
||
```ts | ||
const defaultSourceMap = { | ||
js: isDev ? 'cheap-module-source-map' : false, | ||
css: false, | ||
}; | ||
``` | ||
|
||
Used to set whether to generate source map files, and which format of source map to generate. | ||
|
||
import RsbuildConig from '@site-docs-en/components/rsbuild-config-tooltip'; | ||
|
||
<RsbuildConig /> |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
packages/document/main-doc/docs/zh/configure/app/output/source-map.mdx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
title: sourceMap | ||
configName: output.sourceMap | ||
--- | ||
|
||
# output.sourceMap | ||
|
||
- **类型:** | ||
|
||
```ts | ||
type SourceMap = { | ||
js?: Rspack.Configuration['devtool']; | ||
css?: boolean; | ||
}; | ||
``` | ||
|
||
- **默认值:** | ||
|
||
```ts | ||
const defaultSourceMap = { | ||
js: isDev ? 'cheap-module-source-map' : false, | ||
css: false, | ||
}; | ||
``` | ||
|
||
用于设置是否生成 source map 文件,以及生成哪一种格式的 source map。 | ||
|
||
import RsbuildConig from '@site-docs/components/rsbuild-config-tooltip'; | ||
|
||
<RsbuildConig /> |
File renamed without changes.