Skip to content

Commit

Permalink
docs(configuration): change //@ sourceURL to //# sourceURL (webpa…
Browse files Browse the repository at this point in the history
…ck#6215)

since `//@ sourceURL` is deprecated
  • Loading branch information
draculapile authored Jun 14, 2022
1 parent 6f3623c commit 51481d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/configuration/devtool.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ T> See [`output.sourceMapFilename`](/configuration/output/#outputsourcemapfilena

The following options are ideal for development:

`eval` - Each module is executed with `eval()` and `//@ sourceURL`. This is pretty fast. The main disadvantage is that it doesn't display line numbers correctly since it gets mapped to transpiled code instead of the original code (No Source Maps from Loaders).
`eval` - Each module is executed with `eval()` and `//# sourceURL`. This is pretty fast. The main disadvantage is that it doesn't display line numbers correctly since it gets mapped to transpiled code instead of the original code (No Source Maps from Loaders).

`eval-source-map` - Each module is executed with `eval()` and a SourceMap is added as a DataUrl to the `eval()`. Initially it is slow, but it provides fast rebuild speed and yields real files. Line numbers are correctly mapped since it gets mapped to the original code. It yields the best quality SourceMaps for development.

Expand Down

0 comments on commit 51481d9

Please sign in to comment.