!1025 Fix clean webpack of esmodule

Merge pull request !1025 from zrg/fix_clean_webpack_module
This commit is contained in:
openharmony_ci
2022-08-27 07:01:10 +00:00
committed by Gitee
2 changed files with 4 additions and 0 deletions
+1
View File
@@ -143,6 +143,7 @@ export class GenAbcPlugin {
}
if (projectConfig.compileMode === ESMODULE) {
removeDir(output);
removeDir(projectConfig.nodeModulesPath);
}
+3
View File
@@ -346,6 +346,9 @@ function setGenAbcPlugin(env, config) {
}
function setCleanWebpackPlugin(workerFile, config) {
if (projectConfig.compileMode === 'esmodule') {
return;
}
let cleanPath = [];
cleanPath.push(projectConfig.buildPath);
if (workerFile) {