Skip to content

Commit

Permalink
docs(plugins): add debugIds option for SourceMapDevToolPlugin
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Dec 8, 2024
1 parent 343c38b commit 8e313e0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/content/plugins/source-map-dev-tool-plugin.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ contributors:
- byzyk
- EugeneHlushko
- chenxsan
- snitin315
related:
- title: Building Source Maps
url: https://survivejs.com/webpack/building/source-maps/#-sourcemapdevtoolplugin-and-evalsourcemapdevtoolplugin-
Expand Down Expand Up @@ -44,6 +45,7 @@ The following options are supported:
- `publicPath` (`string`): Emits absolute URLs with public path prefix, e.g. `https://example.com/project/`.
- `fileContext` (`string`): Makes the `[file]` argument relative to this directory.
- `sourceRoot` (`string`): Provide a custom value for the `sourceRoot` property in the SourceMap.
- `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.

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

Expand Down

0 comments on commit 8e313e0

Please sign in to comment.