From 16325a60cb1cdcec2bcb9e5b0ca92beb6e99fcc1 Mon Sep 17 00:00:00 2001 From: zhangbingce Date: Mon, 18 Oct 2021 10:10:03 +0800 Subject: [PATCH] fixed e674a58 from https://gitee.com/zhangbingce/developtools_ace-ets2bundle/pulls/58 fix typo of PR50-delete ?entry in sourcemap Signed-off-by: zhangbingce Change-Id: Ib970edb6f3787a906d337d52ae899808429a2754 --- compiler/src/compile_info.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/src/compile_info.ts b/compiler/src/compile_info.ts index 5176ede3e..02b70a024 100644 --- a/compiler/src/compile_info.ts +++ b/compiler/src/compile_info.ts @@ -64,10 +64,10 @@ 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 => { + compiler.hooks.compilation.tap('SourcemapFixer', compilation => { + compilation.hooks.afterProcessAssets.tap('SourcemapFixer', assets => { Reflect.ownKeys(assets).forEach(key => { - if (/\.map/.test(key.toString())) { + if (/\.map$/.test(key.toString())) { assets[key]._value = assets[key]._value.toString().replace('.ets?entry', '.ets'); } }); -- Gitee