Skip to content

Commit 1491339

Browse files
authored
feat: Document native webpack support (#43)
1 parent 327d48d commit 1491339

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

packages/webpack/README.md

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

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

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

928
```ts

0 commit comments

Comments
 (0)