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

fix(nuxt): ignore whitespace and commas within resolveComponent #5428

Merged
merged 2 commits into from
Jun 12, 2022

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

resolves nuxt/nuxt#14144

❓ 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

In some cases users may insert whitespace or a trailing comma; this updates the regexp to account for that. I've not tried to handle comments but have added a warning to the docs.

πŸ“ Checklist

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

@danielroe danielroe added bug Something isn't working πŸ”¨ p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage labels Jun 12, 2022
@danielroe danielroe requested a review from pi0 June 12, 2022 21:15
@danielroe danielroe self-assigned this Jun 12, 2022
@netlify
Copy link

netlify bot commented Jun 12, 2022

βœ… Deploy Preview for nuxt3-docs ready!

Name Link
πŸ”¨ Latest commit 3285b05
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62a6578ae4106f0008078ff8
😎 Deploy Preview https://deploy-preview-5428--nuxt3-docs.netlify.app
πŸ“± Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@pi0 pi0 merged commit 0f4fa56 into main Jun 12, 2022
@pi0 pi0 deleted the fix/whitespace-resolve-component branch June 12, 2022 21:22
@pi0 pi0 mentioned this pull request Jun 12, 2022
@danielroe danielroe added the 3.x label Jan 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
3.x bug Something isn't working πŸ”¨ p3-minor-bug Priority 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.

Dynamic Components with resolveComponent results in Vue warning and not rendering the component
2 participants