mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-19 16:43:34 -04:00
!58 fix typo of PR50-delete ?entry in sourcemap
Merge pull request !58 from zhangbingce/master
This commit is contained in:
@@ -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');
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user