nuxt / content

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

fix: ensure `bundler` module resolution works with runtime type imports #2470

Closed danielroe closed 11 months ago

danielroe commented 11 months ago

🔗 Linked issue

resolves https://github.com/nuxt/content/issues/2469

❓ Type of change

📚 Description

This adds support for Bundler TypeScript module resolution. It changes extensions of runtime dir files to .js which should be safe as this is a type: module project.

I also add a subpath for @nuxt/content/dist/runtime/types as this is already documented. But we could also have a more ergonomic subpath for type augmentation.

📝 Checklist

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

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: f492947
Status: ✅  Deploy successful!
Preview URL: https://b02e475c.nuxt-content-1il.pages.dev
Branch Preview URL: https://fix-bundler-resolution.nuxt-content-1il.pages.dev

View logs