We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dca163e commit 7c4030eCopy full SHA for 7c4030e
packages/vite/README.md
@@ -4,8 +4,29 @@
4
5
Injects Debug IDs into source and sourcemaps when using Vite.
6
7
+Vite v6.1.1 and later support debug IDs natively without any plugins. Just set
8
+`build.rollupOptions.output.sourcemapDebugIds: true`:
9
+
10
`vite.config.mjs`
11
12
+```ts
13
+export default {
14
+ root: "./src",
15
+ mode: "production",
16
+ build: {
17
+ outDir: "./dist",
18
+ sourcemap: true,
19
+ rollupOptions: {
20
+ output: {
21
+ sourcemapDebugIds: true,
22
+ },
23
24
25
+};
26
+```
27
28
+For older versions of Vite, you can use this plugin to inject debug IDs:
29
30
```ts
31
import debugIds from "@debugids/vite";
32
0 commit comments