diff --git a/src/main.ts b/src/main.ts index 171ef20..fde6634 100644 --- a/src/main.ts +++ b/src/main.ts @@ -50,12 +50,9 @@ const hotReloadExtension = (options: hotReloadExtensionOptions): Plugin => { chalkLogger.red('Load extension to browser...'); return; } - - // buffer time - setTimeout(() => { - ws?.send(Message.FILE_CHANGE); - if (log) chalkLogger.green('Extension Reloaded...'); - }, 500); + // TODO BUG: when user triggers watch before previous build is completed, the extension crashes + ws?.send(Message.FILE_CHANGE); + if (log) chalkLogger.green('Extension Reloaded...'); } }; };