Skip to content

Templates do not provide build-time dead-code elimination #20893

Open
@TSenter

Description

@TSenter

🐞 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions