You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(not visible in the playground) but this code will output a Name component and a index.ts (that is used to export all compiled components). In the index.ts I expect all exports from the components (e.g. the actual directive/component and the module) to be exported from the index.ts so we can import all components/directives/modules form a singular source.
I am interested in helping provide a fix!
Yes
Which generators are impacted?
Reproduction case
https://mitosis.builder.io/playground/?outputTab=G4VwpkA%3D&code=JYWwDg9gTgLgBAbzgVwM4FMDKMCGN1wC%2BcAZlBCHAEQACARssADYAm6UAdMBAPQjAwIqYKioBuAFATgAO3xQSOAMYEACuTCpEEuHBk4Q6AFxxUMKLIDmOuDkvG9yEHXYTCE9AA9IsOG0XITPAkyDJKMNwycAByBugAFGAaqCbqEJoAlNq6ShAyZnAA2vqGADSm6DCxhgC6cAC8KBjYeAlU2OgAbuhUGZI2UJXIUFHxNroAPCzAnQB847qIcEnpqBwlBO6LixOyYMgwC9tKqKj1CAhH23C5TNAmVIMsVKVXuoRb17qdOEzI6OcNp8vnkAMIACxwMns53iXXQciy9VmFSqcTh3TkHFwUHsMA4Pz%2B6AywMWPHmXwAEugmHcAIRwACSNyhcCgoTgsjgACV0MoYOUAGr%2FcqYCBMYAscrQOAAGWAAEdGCw6QsJjxpnMbH03EA%3D
Expected Behaviour
(not visible in the playground) but this code will output a Name component and a
index.ts
(that is used to export all compiled components). In theindex.ts
I expect all exports from the components (e.g. the actual directive/component and the module) to be exported from theindex.ts
so we can import all components/directives/modules form a singular source.So I expect this:
Actual Behaviour
The
index.ts
looks like this:This only exposes the component/directive as that is the default export, but the module (and any other additional exports) are not exposed.
Additional Information
In short. The generated
index.ts
only exports the default exports, but in Angular we also need access to the module.Of course the component modules are still exposed using an absolute path, but this is a hassle and generally an anti-pattern.
The text was updated successfully, but these errors were encountered: