Skip to content

Commit

Permalink
fix: file watcher depth 2
Browse files Browse the repository at this point in the history
  • Loading branch information
s00d committed Sep 25, 2024
1 parent ad7909b commit 3b92d5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export default defineNuxtModule<ModuleOptions>({
nuxt.callHook('restart')
}

const watcher = watch(translationPath, { depth: 1, persistent: true }).on('change', watcherEvent)
const watcher = watch(translationPath, { depth: 2, persistent: true }).on('change', watcherEvent)

nuxt.hook('close', () => {
watcher.close()
Expand Down

0 comments on commit 3b92d5f

Please sign in to comment.