Skip to content

feat: use this package to access component metadatas #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Mw3y
Copy link

@Mw3y Mw3y commented May 24, 2025

This PR introduces back the component-meta:parsed hook mentioned in #29 along with a new one for hot-reloaded component metas component-meta:hot-reloaded.

The onlyParseMetas option has been added to disable the composables and server side routes provided by the module.

All these changes allow a module at build time to access the component metadatas.

@Mw3y
Copy link
Author

Mw3y commented May 26, 2025

@farnabaz can you approve the workflow for pkg-pr-new please?

@Mw3y Mw3y closed this Jun 6, 2025
@Mw3y Mw3y deleted the parsed-hooks branch June 6, 2025 15:22
@Mw3y Mw3y restored the parsed-hooks branch June 6, 2025 15:23
@Mw3y Mw3y deleted the parsed-hooks branch June 6, 2025 15:23
@Mw3y Mw3y restored the parsed-hooks branch June 6, 2025 15:28
@Mw3y Mw3y reopened this Jun 6, 2025
@Mw3y
Copy link
Author

Mw3y commented Jun 7, 2025

I've added the parseAtBuild option to parse component metadatas at build time. This allows usage of this data in a custom @nuxt/content transformer for example.

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.

1 participant