Templates do not provide build-time dead-code elimination
Open
Performance
Proposed Feature
- Dominant language
- TypeScript
- Stars
- 22.6k
- Forks
- 4.2k
- Avg merge
- 3d 12h
- Merged PRs (30d)
- 15
Description
### 🐞 Describe the Bug
Templates do not provide build-time dead-code elimination.
### 🔬 Minimal Reproduction
Create a new GJS/GTS component:
```glimmer-ts
{{#if false}}
This should never appear
{{/if}}
```
Reproduction: . Note that the "Sample C" component works but does not perform DCE.
This is related to embroider-build/embroider#2453
Contributor guide
Assessment
This issue has not been assessed yet.