When the value of a switch case is hardcoded, either literally in code or through define option, esbuild does not treeshake the unreachable switch cases.
Reproduction 0.24.2: https://esbuild.github.io/try/#dAAwLjI0LjIALS1taW5pZnkgAHN3aXRjaCAoImEiKSB7CiAgICBjYXNlICJhIjogewogICAgICBjb25zb2xlLmxvZygiYSIpOwogICAgfQogICAgY2FzZSAiYiI6IHsKICAgICAgY29uc29sZS5sb2coImIiKTsKICAgIH0KICB9
Expected output after minification: