mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-21 03:55:23 -04:00
Fix clean webpack of esmodule
Signed-off-by: zhangrengao <zhangrengao1@huawei.com> Change-Id: I2302e7d209c5cc98735ab5a416a5839cdcbaa2bd
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