diff --git a/doric-cli/scripts/watcher.js b/doric-cli/scripts/watcher.js index fe6d6f24..e16e4b4a 100644 --- a/doric-cli/scripts/watcher.js +++ b/doric-cli/scripts/watcher.js @@ -12,6 +12,8 @@ setTimeout(() => { ws.listen(7777) chokidar.watch(process.cwd() + "/bundle", { ignored: /(^|[\/\\])\../, + awaitWriteFinish: true, + alwaysStat: true, }).on('change', (path) => { if (ws.debugging) { console.log("debugging, hot reload by pass")