BuilderIO/mitosis

How to import by name

wabi-habi opened this issue · 1 comments

I am interested in helping provide a feature!

Yes

Which generators are impacted?

  • All
  • Angular
  • HTML
  • Qwik
  • React
  • React-Native
  • Solid
  • Stencil
  • Svelte
  • Vue
  • Web components

What problem does this feature solve?

mitosis

import test from `test-${target}`

vue

import test from 'test-vue'

react

import test from 'test-react'

What does the proposed API look like?

Is this feature supported? I'm just kind of guessing as well!

Additional Information

No response

Not sure what this feature is meant to be, but no, nothing like that is supported.

Each output should be stored in its own npm package, with its own package.json. That is the right way to publish the outputs: as separate packages. Here is an example app: