From 8e313e0ee958b05bf88559a5283b45ac05377da9 Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Sun, 8 Dec 2024 16:55:15 +0530 Subject: [PATCH 1/2] docs(plugins): add `debugIds` option for `SourceMapDevToolPlugin` --- src/content/plugins/source-map-dev-tool-plugin.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content/plugins/source-map-dev-tool-plugin.mdx b/src/content/plugins/source-map-dev-tool-plugin.mdx index cb23a19528d0..21e15bbb63cd 100644 --- a/src/content/plugins/source-map-dev-tool-plugin.mdx +++ b/src/content/plugins/source-map-dev-tool-plugin.mdx @@ -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- @@ -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]`. From 62977c396870ee98ee7c8cb28003fc94de0ed06d Mon Sep 17 00:00:00 2001 From: Nitin Kumar Date: Sun, 8 Dec 2024 17:10:00 +0530 Subject: [PATCH 2/2] Update src/content/plugins/source-map-dev-tool-plugin.mdx --- src/content/plugins/source-map-dev-tool-plugin.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/plugins/source-map-dev-tool-plugin.mdx b/src/content/plugins/source-map-dev-tool-plugin.mdx index 21e15bbb63cd..4dd3734ef771 100644 --- a/src/content/plugins/source-map-dev-tool-plugin.mdx +++ b/src/content/plugins/source-map-dev-tool-plugin.mdx @@ -45,7 +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. +- `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]`.