Workaround swc parsing string as inline sourcemap
This commit is contained in:
parent
3be1768672
commit
198c7a9720
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user