Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

feat(nuxt3): extends support for plugins/ directory #3462

Merged
merged 2 commits into from
Mar 9, 2022
Merged

Conversation

kevinmarrec
Copy link
Contributor

@kevinmarrec kevinmarrec commented Mar 1, 2022

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

Following up nuxt/nuxt#13367 (extends support progress) this PR allows extending plugins/ directory for extended config layers

TO DO

@kevinmarrec kevinmarrec requested a review from pi0 March 1, 2022 12:29
@netlify
Copy link

netlify bot commented Mar 1, 2022

βœ”οΈ Deploy Preview for nuxt3-docs ready!

πŸ”¨ Explore the source changes: 1a30a44

πŸ” Inspect the deploy log: https://app.netlify.com/sites/nuxt3-docs/deploys/622885f917fb47000900ddf5

😎 Browse the preview: https://deploy-preview-3462--nuxt3-docs.netlify.app

TODO: use layer named aliases to avoid confusing resolver behavior
@pi0 pi0 changed the title feat!(nuxt3): extends support for plugins/ directory feat(nuxt3): extends support for plugins/ directory Mar 9, 2022
@pi0
Copy link
Member

pi0 commented Mar 9, 2022

For supporting aliases in layer, we might introduce new named layer aliases. Changing resolver behavior and aliases might be tricky to be handled properly and sometimes we actualyl do like to allow overriding something from user dir (~/plugins/foo being overriden)

export default defineNuxtConfig({
  name: 'myTheme'
  plugins: [
    '~myTheme/plugins/foo'
  ]
})

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants