Skip to content
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

feat(nuxt): supports automatic import of stores from extend layers #2828

Open
wants to merge 2 commits into
base: v2
Choose a base branch
from

Conversation

wzc520pyfm
Copy link

@wzc520pyfm wzc520pyfm commented Nov 9, 2024

When I install pinia in a nuxt layer and create stores folder, and then I extend this layer in another nuxt application, I find that the stores are not automatically imported.

What this PR does:

When addImportsDir, consider the nuxt layers also.

Refer:

Pinia autoImports for nuxt

Nuxt layers

Copy link

netlify bot commented Nov 9, 2024

Deploy Preview for pinia-playground canceled.

Name Link
🔨 Latest commit 3f4442f
🔍 Latest deploy log https://app.netlify.com/sites/pinia-playground/deploys/672fa0866fec6d00089bec54

Copy link

netlify bot commented Nov 9, 2024

Deploy Preview for pinia-official canceled.

Name Link
🔨 Latest commit 3f4442f
🔍 Latest deploy log https://app.netlify.com/sites/pinia-official/deploys/672fa086672e41000862bf3b

@wzc520pyfm wzc520pyfm changed the title feat(nuxt): supports automatic import of folder in extend layers feat(nuxt): supports automatic import of stores from extend layers Nov 9, 2024
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