fix typo of PR50-delete ?entry in sourcemap

Signed-off-by: zhangbingce <zhangbingce@huawei.com>
Change-Id: Ib970edb6f3787a906d337d52ae899808429a2754
This commit is contained in:
zhangbingce
2021-10-18 10:10:03 +08:00
parent 1521ea2b18
commit e674a58798
+3 -3
View File
@@ -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');
}
});