web: fix webpack/Terser release build crash in Web CI Pipeline - #31652
Merged
Conversation
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Copilot
AI
changed the title
[WIP] Fix failure in GitHub Actions job for PR #31651
web: fix webpack/Terser release build crash in Web CI Pipeline
Aug 5, 2026
…crash Co-authored-by: tianleiwu <30328909+tianleiwu@users.noreply.github.com>
tianleiwu
marked this pull request as ready for review
August 5, 2026 08:00
tianleiwu
enabled auto-merge (squash)
August 5, 2026 08:00
apsonawane
approved these changes
Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The Web CI Pipeline failure on PR #31651 was caused by Terser choking on a specific emitted JS pattern during webpack minification (reported as 4 webpack/Terser errors before
webpack 5.109.2 compiled with 4 errors).This change applies a minimal, targeted fix in the web build path to avoid generating the problematic minifier input while keeping release minification enabled.
Root-cause alignment (job
92166672347)Minimal build/config correction
Focused regression guard
Motivation and Context
PR #31651’s Web CI Pipeline failed in the webpack production step with
compiled with 4 errorsand Terser compressor stack frames.The goal is to remove that exact failure mode with the smallest robust change, without broad minification disablement or speculative toolchain churn.