mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-20 19:47:44 -04:00
!1025 Fix clean webpack of esmodule
Merge pull request !1025 from zrg/fix_clean_webpack_module
This commit is contained in:
@@ -143,6 +143,7 @@ export class GenAbcPlugin {
|
||||
}
|
||||
|
||||
if (projectConfig.compileMode === ESMODULE) {
|
||||
removeDir(output);
|
||||
removeDir(projectConfig.nodeModulesPath);
|
||||
}
|
||||
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user