ember.js
ember.js copied to clipboard
Templates do not provide build-time dead-code elimination
🐞 Describe the Bug
Templates do not provide build-time dead-code elimination.
🔬 Minimal Reproduction
Create a new GJS/GTS component:
<template>
{{#if false}}
This should never appear
{{/if}}
</template>
Reproduction: https://stackblitz.com/edit/github-v3j3hzvu. Note that the "Sample C" component works but does not perform DCE.
This is related to embroider-build/embroider#2453
I think a better example of this would be
{{#if false}}
should not exist when compiled
{{/if}}