emberjs / emberjs/ember.js

Templates do not provide build-time dead-code elimination

Open
#20,893 4 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.