[ ] 📖 Documentation (updates to the documentation or readme)
[x] 🐞 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.
🔗 Linked issue
resolves https://github.com/nuxt/content/issues/2381 together with https://github.com/nuxt-modules/mdc/pull/160
❓ Type of 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