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 327d48d commit 1491339Copy full SHA for 1491339
packages/webpack/README.md
@@ -4,6 +4,25 @@
4
5
Injects Debug IDs into source and sourcemaps when using webpack.
6
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
26
`webpack.config.mjs`
27
28
```ts
0 commit comments