pull/4525/head
Divyansh Singh 7 months ago
parent 24727af4e8
commit 689984da34

@ -172,15 +172,16 @@ export const dynamicRoutesPlugin = async (
} }
} }
if (modules.size || watchedFileChanged) { if (
(modules.size && !normalizedFile.endsWith('.md')) ||
watchedFileChanged
) {
// path loader module or deps updated, reset loaded routes // path loader module or deps updated, reset loaded routes
if (!normalizedFile.endsWith('.md') || watchedFileChanged) {
Object.assign( Object.assign(
config, config,
await resolvePages(config.srcDir, config.userConfig, config.logger) await resolvePages(config.srcDir, config.userConfig, config.logger)
) )
} }
}
return modules.size ? [...existingMods, ...modules] : undefined return modules.size ? [...existingMods, ...modules] : undefined
} }

Loading…
Cancel
Save