Skip to content

Commit 47cbf12

Browse files
authored
feat: Document native Rspack support (#45)
1 parent 1491339 commit 47cbf12

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

packages/rspack/README.md

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

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

7+
Rspack v1.2.0 and later support debug IDs natively without any plugins. Just add `-debugids` to the end of any devtool option:
8+
9+
`rspack.config.mjs`
10+
```ts
11+
export default {
12+
entry: "./src/main.js",
13+
mode: "production",
14+
devtool: "source-map-debugids",
15+
output: {
16+
filename: "main.js",
17+
path: "./dist",
18+
},
19+
};
20+
```
21+
22+
For older versions of webpack, you can use this plugin to inject debug IDs:
23+
724
`rspack.config.mjs`
825

926
```ts

0 commit comments

Comments
 (0)