Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions packages/vite/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,29 @@

Injects Debug IDs into source and sourcemaps when using Vite.

Vite v6.1.1 and later support debug IDs natively without any plugins. Just set
`build.rollupOptions.output.sourcemapDebugIds: true`:

`vite.config.mjs`

```ts
export default {
root: "./src",
mode: "production",
build: {
outDir: "./dist",
sourcemap: true,
rollupOptions: {
output: {
sourcemapDebugIds: true,
},
},
},
};
```

For older versions of Vite, you can use this plugin to inject debug IDs:

```ts
import debugIds from "@debugids/vite";

Expand Down
Loading