Skip to content

Commit 327d48d

Browse files
authored
feat: Document Rollup native support (#42)
1 parent 3e7094c commit 327d48d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

packages/rollup/README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,24 @@
44

55
Injects Debug IDs into source and sourcemaps when using Rollup.
66

7+
Rollup v4.25.0 and later support debug IDs natively without any plugins:
8+
9+
`rollup.config.mjs`
10+
11+
```ts
12+
export default {
13+
input: "./src/main.js",
14+
output: {
15+
dir: "dist",
16+
format: "esm",
17+
sourcemap: true,
18+
sourcemapDebugIds: true,
19+
},
20+
};
21+
```
22+
23+
For older versions of Rollup, you can use this plugin to inject debug IDs:
24+
725
`rollup.config.mjs`
826

927
```ts

0 commit comments

Comments
 (0)