From 5a728f75d510c27541f51d8f8e48e1d887105c08 Mon Sep 17 00:00:00 2001 From: Jecelyn Yeen <5917927+jecfish@users.noreply.github.com> Date: Sun, 2 Apr 2023 09:38:43 +0200 Subject: [PATCH] docs: Update x_google_ignoreList url --- docs/config/server-options.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/config/server-options.md b/docs/config/server-options.md index 49c766cba59d5a..ab0f1b261ddb7c 100644 --- a/docs/config/server-options.md +++ b/docs/config/server-options.md @@ -324,7 +324,7 @@ export default defineConfig({ - **Type:** `false | (sourcePath: string, sourcemapPath: string) => boolean` - **Default:** `(sourcePath) => sourcePath.includes('node_modules')` -Whether or not to ignore source files in the server sourcemap, used to populate the [`x_google_ignoreList` source map extension](https://developer.chrome.com/blog/devtools-better-angular-debugging/#the-x_google_ignorelist-source-map-extension). +Whether or not to ignore source files in the server sourcemap, used to populate the [`x_google_ignoreList` source map extension](https://developer.chrome.com/articles/x-google-ignore-list/). `server.sourcemapIgnoreList` is the equivalent of [`build.rollupOptions.output.sourcemapIgnoreList`](https://rollupjs.org/configuration-options/#output-sourcemapignorelist) for the dev server. A difference between the two config options is that the rollup function is called with a relative path for `sourcePath` while `server.sourcemapIgnoreList` is called with an absolute path. During dev, most modules have the map and the source in the same folder, so the relative path for `sourcePath` is the file name itself. In these cases, absolute paths makes it convenient to be used instead.