#1667·terser

fix: swallowed errors in infer_options hide real failures

Author: LucciHankCreated Apr 2, 2026Updated Apr 28, 2026
LabelsBreaking Change

Description

infer_options catches all errors from minify() and returns error.defs (or undefined if the thrown error lacks a defs property). Real errors during option inference or minification are silently turned into undefined, preventing proper error propagation and hiding failures from callers.

Severity: high File: main.js

Expected Behavior

The code should handle this case properly to avoid unexpected errors or degraded quality.