From e98ee2331256690b703bce5ab63e743d3a54b894 Mon Sep 17 00:00:00 2001 From: draculapile <243943612@qq.com> Date: Tue, 14 Jun 2022 14:16:51 +0800 Subject: [PATCH] Fix: change `//@ sourceURL` to `//# sourceURL` since `//@ sourceURL` is deprecated --- src/content/configuration/devtool.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/configuration/devtool.mdx b/src/content/configuration/devtool.mdx index 54a5f8b21978..b0a5935eead4 100644 --- a/src/content/configuration/devtool.mdx +++ b/src/content/configuration/devtool.mdx @@ -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.