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

fix: optimise nested dependencies #2583

Merged
merged 3 commits into from Mar 11, 2024
Merged

fix: optimise nested dependencies #2583

merged 3 commits into from Mar 11, 2024

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

resolves #2381 together with nuxt-modules/mdc#160

❓ 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

Vite requires dependencies that are optimised to be installed, but slugify won't be directly installed by users. So we can indicate to vite to resolve the dependency from within another dependency that is installed, in this case @nuxt/content...

We also have to modify the list for deps injected by @nuxtjs/mdc as that module won't be directly installed either.

πŸ“ Checklist

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

@danielroe danielroe self-assigned this Mar 11, 2024
@danielroe danielroe requested a review from farnabaz March 11, 2024 00:14
@danielroe danielroe changed the title fix: optimise slugify with nested config fix: optimise nested dependencies Mar 11, 2024
Copy link

Deploying with Β Cloudflare Pages Β Cloudflare Pages

Latest commit: eade3cf
Status:Β βœ…Β  Deploy successful!
Preview URL: https://2692941c.nuxt-content-1il.pages.dev
Branch Preview URL: https://fix-optimise-unhoisted.nuxt-content-1il.pages.dev

View logs

@farnabaz farnabaz merged commit f5ac6f5 into main Mar 11, 2024
3 checks passed
@farnabaz farnabaz deleted the fix/optimise-unhoisted branch March 11, 2024 10:11
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.

Dependency warning in workspace+pnpm environment.
2 participants