I am trying to migrate my nuxt 2 project to nuxt 3. My Nuxt 2 project uses the composition api. I am using nuxt bridge to make the transition easier.
Through the composition API, I have been creating every component with defineComponent
:
import { defineComponent, computed } from '@nuxtjs/composition-api';
I've looked through the nuxt bridge documentation, and it's unclear how to refactor defineComponent
. Does anyone know how I should refactor defineComponent
? Do I continue using defineComponent
but instead import it from '#imports' as described here? If so, does this mean that my change would look like this?
import { defineComponent } from '#imports'