Skip to content
This repository was archived by the owner on Apr 6, 2023. It is now read-only.
/frameworkPublic archive

fix(nuxt): resolve plugins and middleware to their full path - #6350

Merged
pi0 merged 6 commits into
mainfrom
fix/unctx-plugins
Aug 4, 2022
Merged

fix(nuxt): resolve plugins and middleware to their full path#6350
pi0 merged 6 commits into
mainfrom
fix/unctx-plugins

Conversation

@danielroe

Copy link
Copy Markdown
Member

🔗 Linked issue

resolvesnuxt/nuxt#14479

❓ 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

When a plugin is in injected like /path/to/someplugin without the extension, we can likely match /path/to/someplugin.*. A more accurate, but more costly, route would be to use resolvePath when adding plugins (or to normalize afterwards before app:resolve.

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroedanielroe added bug Something isn't working 🔨 p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage labels Aug 4, 2022
@danielroe
danielroe requested a review from pi0August 4, 2022 09:56
@danielroedanielroe self-assigned this Aug 4, 2022
@netlify

netlifyBot commented Aug 4, 2022

Copy link
Copy Markdown

Deploy Preview for nuxt3-docs canceled.

NameLink
🔨 Latest commit64a9656
🔍 Latest deploy loghttps://app.netlify.com/sites/nuxt3-docs/deploys/62ebd3941d113e000c1593d8

@pi0

pi0 commented Aug 4, 2022

Copy link
Copy Markdown
Member

Is this possible to add a simple usage test fixture?

Comment threadtest/fixtures/basic/modules/example.ts
Comment threadpackages/nuxt/src/core/app.ts Outdated
Comment threadpackages/nuxt/src/core/app.ts Outdated
@danielroe
danielroe requested a review from pi0August 4, 2022 14:11
@pi0pi0 changed the title fix(nuxt): include plugins/middleware without extensions in transformfix(nuxt): resolve plugins and middleware to their full pathAug 4, 2022
pi0
pi0 approved these changes Aug 4, 2022
@pi0
pi0 merged commit 746d553 into mainAug 4, 2022
@pi0
pi0 deleted the fix/unctx-plugins branch August 4, 2022 15:15
@max5432112345

Copy link
Copy Markdown

Deploy failed for nuxt3-docs
Today at 5:11 PM

PR#6350: fix/unctx-plugins@64a9656

@pi0pi0 mentioned this pull request Aug 5, 2022
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3.xbugSomething isn't working🔨 p3-minor-bugPriority 3: a bug in an edge case that only affects very specific usage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

i18n/useRouter/useNuxtApp - Error nuxt instance unavailable

3 participants

@danielroe@pi0@max5432112345