From 0dab7878e9713d0205306ee52572a5cb99938bc9 Mon Sep 17 00:00:00 2001 From: Simon He <57086651+Simon-He95@users.noreply.github.com> Date: Wed, 17 Apr 2024 00:07:38 +0800 Subject: [PATCH] fix(webpack): sourceMap (#3732) --- packages/webpack/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/webpack/src/index.ts b/packages/webpack/src/index.ts index f02672450..b3eefdd9e 100644 --- a/packages/webpack/src/index.ts +++ b/packages/webpack/src/index.ts @@ -145,7 +145,7 @@ export default function WebpackPlugin( return escapeCss(css) }) if (replaced) - compilation.assets[file] = new WebpackSources.RawSource(code) as any + compilation.assets[file] = new WebpackSources.SourceMapSource(code, file, compilation.assets[file].map() as any) as any } }) })