diff --git a/compiler/src/compile_info.ts b/compiler/src/compile_info.ts index f8a1d234d47f8b0d46a2c1f748930995ee96b5c7..5176ede3e4421c43da46e55098173d50c037a2dc 100644 --- a/compiler/src/compile_info.ts +++ b/compiler/src/compile_info.ts @@ -64,6 +64,17 @@ export class ResultStates { private reset: string = '\u001b[39m'; public apply(compiler: Compiler): void { + compiler.hooks.compilation.tap("SourcemapFixer", compilation => { + compilation.hooks.afterProcessAssets.tap("SourcemapFixer", assets => { + Reflect.ownKeys(assets).forEach(key => { + if (/\.map/.test(key.toString())) { + assets[key]._value = assets[key]._value.toString().replace('.ets?entry', '.ets'); + } + }); + } + ); + }); + compiler.hooks.done.tap('Result States', (stats: Stats) => { this.mStats = stats; this.warningCount = 0;