nuxt / framework

Old repo of Nuxt 3 framework, now on nuxt/nuxt
https://nuxt.com
10.64k stars 1.05k forks source link

feat: composables import path #10084

Closed ineshbose closed 1 year ago

ineshbose commented 1 year ago

🔗 Linked issue

nuxt/nuxt.js#12414

❓ Type of change

📚 Description

Added 'composables/*/index.{ts,js,mjs,mts}' to composable imports to scan the same way as plugins/

📝 Checklist

codesandbox[bot] commented 1 year ago

CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders

danielroe commented 1 year ago

Here's some context: https://github.com/nuxt/framework/pull/6025.

ineshbose commented 1 year ago

Thanks for linking the previous discussion(s). I see https://github.com/nuxt/nuxt.js/issues/14358 open as well in that regard, so the planned approach instead is for plugins/ to only scan top level. Up to you to close this!

Edit: nuxt/framework#10090 for plugins/