nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3.08k stars 624 forks source link

fix: optimise nested dependencies #2583

Closed danielroe closed 6 months ago

danielroe commented 6 months ago

🔗 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

cloudflare-workers-and-pages[bot] commented 6 months ago

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