From 2ed717f084e5dc115fa9e9e332fb923937fa818b Mon Sep 17 00:00:00 2001 From: "Joshua A. Horton" Date: Mon, 5 Feb 2024 13:37:47 +0700 Subject: [PATCH] fix(web): app/webview sourcemap inlining --- web/src/tools/building/sourcemap-root/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/tools/building/sourcemap-root/index.ts b/web/src/tools/building/sourcemap-root/index.ts index 20c5c0135d..c99c0c4e5c 100644 --- a/web/src/tools/building/sourcemap-root/index.ts +++ b/web/src/tools/building/sourcemap-root/index.ts @@ -99,7 +99,7 @@ if(sourceRoot) { srcMap.toFile(mapFile); if(shouldInline) { - const mapToInline = SourcemapRemapper.fromFile(mapFile).sourceRoot; + const mapToInline = SourcemapRemapper.fromFile(mapFile).sourceMap; const inlineableComment = convertSourceMap.fromObject(mapToInline).toComment(); fs.appendFileSync(scriptFile, `\n${inlineableComment}`);