Skip to content

fix: don't memoise configs, and allow external modules to call mdc:configSources#471

Merged
farnabaz merged 1 commit intomainfrom
fix/config-extensions
Mar 26, 2026
Merged

fix: don't memoise configs, and allow external modules to call mdc:configSources#471
farnabaz merged 1 commit intomainfrom
fix/config-extensions

Conversation

@danielroe
Copy link
Copy Markdown
Contributor

Currently we have an issue with external modules trying to push to config sources. Because Nuxt Content synchronously gets the config sources by listening and then uses them, it's impossible for modules registered after Nuxt Content to extend in this instance.

In a way, the way Nuxt content uses the hook is conflicting/confusing because Nuxt content is trying to consume the config sources, whereas in the MDC module, it is exposed as way of modules to extend config sources.

I'm not sure this is the right solution, but this approach is paired with nuxt/content#3736, and is intended to enable an external module (e.g. Nuxt content) to call the hook instead of just listening to it as well as a way of getting the configs.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Feb 27, 2026

npm i https://pkg.pr.new/@nuxtjs/mdc@471

commit: 788d15a

@danielroe danielroe requested a review from farnabaz February 27, 2026 11:13
Copy link
Copy Markdown
Collaborator

@farnabaz farnabaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@farnabaz farnabaz merged commit 160100b into main Mar 26, 2026
1 check passed
@danielroe danielroe deleted the fix/config-extensions branch March 26, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants