Is there a way to check is Nuxt.js is being used?
Why I need to do it
For the UI frameworks development, herewith it's unknown will be used with Nuxt.js or just pure Vue. For example, depending on Vue or Nuxt, we need different link component:
<component is="isNuxt ? 'nuxt-link' : 'router-link'" />
What it the implementation of isNuxt method?
router-link, it will work just fine. If you really need to check for more complex components, you could try check for things likeuseNuxtAppor some specific hook, if it doesn't exists then it's just vue