mirror of
https://github.com/openharmony/developtools_ace-ets2bundle.git
synced 2026-07-21 03:55:23 -04:00
Signed-off-by: bojiang <jiangbo91@huawei.com> Change-Id: I0551d3ecf79d2106f1ade966b5536a2ace042cbd
This commit is contained in:
@@ -200,6 +200,17 @@ export class ResultStates {
|
||||
this.printResult();
|
||||
});
|
||||
|
||||
compiler.hooks.watchRun.tap('Listening State', (compiler: Compiler) => {
|
||||
if (compiler.modifiedFiles) {
|
||||
const isTsAndEtsFile: boolean = [...compiler.modifiedFiles].some((item: string) => {
|
||||
return /.(ts|ets)$/.test(item);
|
||||
});
|
||||
if (!isTsAndEtsFile) {
|
||||
process.env.watchTs = 'end';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (!projectConfig.isPreview) {
|
||||
compiler.hooks.compilation.tap('Collect Components And Modules', compilation => {
|
||||
compilation.hooks.additionalAssets.tapAsync('Collect Components And Modules', callback => {
|
||||
|
||||
Reference in New Issue
Block a user