Scan file that exports components with addComponentsDir

Is scanning a file possible with addComponentsDir?

The location of the components is
runtime/components/index.ts
and inside that file exports components from another module:

export { AComponent, BComponent, CComponent } from 'some-npm-module';


and I want to make them auto-importable with my nuxt module so I did this:

addImportsDir({
  path: resolver.resolve('./runtime/components')
})



But it doesn't seem to work. Am I missing something?
Was this page helpful?