mitosis icon indicating copy to clipboard operation
mitosis copied to clipboard

Generate Angular module(s) or component list .ts file

Open kylecordes opened this issue 3 years ago • 1 comments

Currently

Mitosis emits Angular components, but a consumer needs to know the exact set of components that will be emitted, and to hardcode a module to declare them.

Feature Request

Emit a .module.ts, a ts file importing and listing the components, or both (for consumer flexibility).

Workaround

E2E testing (PR in progress) generates such a component list ts file - a more robust version of this could be in Mitosis itself.

kylecordes avatar Aug 01 '22 16:08 kylecordes

cc @PatrickJS @alujs I know we spoke about this. @kylecordes built a first draft of this for our e2e tests just now https://github.com/BuilderIO/mitosis/pull/557/files/9dd902f7d4440180f935121f2b0e072fc481e59d#diff-a9fcb86374e6b494262a3f7b6b6472857b9d9ceaa835f3a26a10cf0d43560240

samijaber avatar Aug 01 '22 16:08 samijaber