Skip to content

Introduce failsafe workaround for unwanted constant folding - #64

Merged
adams85 merged 1 commit into
mainfrom
fix-constant-folding
Aug 25, 2026
Merged

Introduce failsafe workaround for unwanted constant folding#64
adams85 merged 1 commit into
mainfrom
fix-constant-folding

Conversation

@adams85

@adams85 adams85 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Describe the purpose of your pull request

The bundler/minifier used by Angular (esbuild) aggressively optimizes constant values, which can break our code checking for environment values in surprising ways. For more details, see the explanation in src/environments/environment.prod.ts.

This PR implements a workaround that helps avoid the pitfalls caused by this behavior.

Related issues (only if applicable)

https://trello.com/c/kAa75ZsM

How to test? (only if applicable)

Check if the application launches normally.

Security (only if applicable)

n/a

Requirement checklist (only if applicable)

  • I have covered the applied changes with automated tests.
  • I have executed the full automated test set against my changes.
  • I have validated my changes against all supported platform versions.
  • I have read and accepted the contribution agreement.

@adams85
adams85 requested a review from a team as a code owner August 25, 2026 08:37
@adams85
adams85 merged commit 4cebf98 into main Aug 25, 2026
2 checks passed
@adams85
adams85 deleted the fix-constant-folding branch August 25, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants