Skip to content

Commit 1113fea

Browse files
authored
docs(plugins): add debugIds option for SourceMapDevToolPlugin (#7487)
1 parent 5692fb9 commit 1113fea

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/content/plugins/source-map-dev-tool-plugin.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ contributors:
88
- byzyk
99
- EugeneHlushko
1010
- chenxsan
11+
- snitin315
1112
related:
1213
- title: Building Source Maps
1314
url: https://survivejs.com/webpack/building/source-maps/#-sourcemapdevtoolplugin-and-evalsourcemapdevtoolplugin-
@@ -44,6 +45,7 @@ The following options are supported:
4445
- `publicPath` (`string`): Emits absolute URLs with public path prefix, e.g. `https://example.com/project/`.
4546
- `fileContext` (`string`): Makes the `[file]` argument relative to this directory.
4647
- `sourceRoot` (`string`): Provide a custom value for the `sourceRoot` property in the SourceMap.
48+
- `debugIds` (`boolean`): If `true`, unique ids will be emitted in source and sourcemaps which streamlines identifying sourcemaps across different builds. See the [TC39 sourcemap debug ID proposal](https://github.com/tc39/ecma426/blob/main/proposals/debug-id.md) for more details.
4749

4850
The `fileContext` option is useful when you want to store source maps in an upper level directory to avoid `../../` appearing in the absolute `[url]`.
4951

0 commit comments

Comments
 (0)