diff --git a/packages/i18n/src/module.ts b/packages/i18n/src/module.ts index d097e553..fdf9f29b 100644 --- a/packages/i18n/src/module.ts +++ b/packages/i18n/src/module.ts @@ -158,7 +158,9 @@ export { type GeneratedI18nStructure } if (wxt.config.command === 'serve') { wxt.hooks.hookOnce('build:done', () => { const watcher = watch(localesDir); - watcher.on('change', updateLocalizations); + watcher.on('change', (path) => { + updateLocalizations(path).catch(wxt.logger.error); + }); }); } },