From 198c7a9720b24d90ba20de5ae935455f41f985e4 Mon Sep 17 00:00:00 2001 From: TheSparta Date: Sat, 6 Apr 2024 22:36:23 +0100 Subject: [PATCH] Workaround swc parsing string as inline sourcemap --- project/src/services/ModCompilerService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project/src/services/ModCompilerService.ts b/project/src/services/ModCompilerService.ts index 159588b9..7968dea0 100644 --- a/project/src/services/ModCompilerService.ts +++ b/project/src/services/ModCompilerService.ts @@ -114,8 +114,8 @@ export class ModCompilerService if (output.sourceMapText) { output.outputText = output.outputText.replace( - "//# sourceMappingURL=module.js.map", - `//# sourceMappingURL=${parsedDestPath.base}.map`, + "//# sourceMappingURL\=module.js.map", + `//# sourceMappingURL\=${parsedDestPath.base}.map`, ); const sourceMap = JSON.parse(output.sourceMapText);