nuxt-hub / core

Build full-stack applications with Nuxt on CloudFlare, with zero configuration.
https://hub.nuxt.com
Apache License 2.0
802 stars 35 forks source link

fix: import runtime types from `@nuxthub/core` #168

Closed danielroe closed 2 weeks ago

danielroe commented 2 weeks ago

resolves https://github.com/nuxt-hub/core/issues/166 closes https://github.com/nuxt-hub/core/pull/167

farnabaz commented 2 weeks ago

Do you think we should use this pattern in all modules? Because other modules will face the same issue with module builder, Like image module https://github.com/nuxt/image/blob/e7242fbc2bb37d484f1c903e8a28532973b11ddb/src/runtime/utils/meta.ts#L1-L3

danielroe commented 2 weeks ago

Indeed, we should.

danielroe commented 2 weeks ago

@farnabaz Nice spot. That is actually already broken, even with v0.6.0 of the module builder.