-
Notifications
You must be signed in to change notification settings - Fork 632
Description
I am interested in helping provide a fix!
Yes
Which generators are impacted?
- All
- Angular
- HTML
- Preact
- Qwik
- React
- React-Native
- Solid
- Stencil
- Svelte
- Vue
- Web components
Reproduction case
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 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.
So I expect this:
export * from './my-name-component';
export * from './some-other-component';Actual Behaviour
The index.ts looks like this:
export { default as Name } from './name';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.