Skip to content

Commit dad4ebf

Browse files
authored
fix: call mdc:configSources after all modules have run (#455)
1 parent 4a5f8b8 commit dad4ebf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/module.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,8 @@ export default defineNuxtModule<ModuleOptions>({
122122
}
123123
}
124124
}
125-
await nuxt.callHook('mdc:configSources', mdcConfigs)
125+
126+
nuxt.hook('modules:done', () => nuxt.callHook('mdc:configSources', mdcConfigs))
126127

127128
registerTemplate({
128129
filename: 'mdc-configs.mjs',

0 commit comments

Comments
 (0)