You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
given this code const someVar = someNonExistentVarSoThisCodeShouldTriggerAnError;
when compiled with jsc.transform.optimizer.simplify set to true in .swcrc the above code is dropped from the compiled output. that seems wrong, optimization should not change any behavior. The end effect is that SWC is essentially silencing what would have been a loud failure.
side question, is optimizer.simplify feature considered stable
Describe the bug
given this code
const someVar = someNonExistentVarSoThisCodeShouldTriggerAnError;
when compiled with
jsc.transform.optimizer.simplify
set to true in.swcrc
the above code is dropped from the compiled output. that seems wrong, optimization should not change any behavior. The end effect is that SWC is essentially silencing what would have been a loud failure.side question, is
optimizer.simplify
feature considered stableInput code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.10.12&code=H4sIAAAAAAAAA0vOzysuUUhUsFUozs9N9cvPc63ILC5JzSsJSywKzg%2FJyCx2zk9JDc7IL81JCSnKTE9PLXLMcy0qyi%2By5koG600iW29%2BTqpeTn66RpImFwBhzhuZhwAAAA%3D%3D&config=H4sIAAAAAAAAA21QSQ7CMAy89xWVzxwACQ78gUdEwalSZZOdSpSqfydNk9JKXCJ7xjNjZ2raFnqW8GinVKYmCGKkrU8Ijy6Kd0IApRUsSYcIp8r2vFBKGMYMzSsDUVCHMav4er7cigKM94xVUTCrnVbjPlN6GwiZj4PLqHCdwf%2BJJBwrT3Zv5EPUVn8OFy03aRvMmhlpwELMTX2zJ1j%2FGnJY%2BZs4BlwvusNvqC6%2FLQqan1WZ3ecva2l8K2cBAAA%3D
SWC Info output
No response
Expected behavior
it should not drop the line
Actual behavior
No response
Version
1.10.12
Additional context
No response
The text was updated successfully, but these errors were encountered: