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
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.
Describe the bug
Regression from 1.4.0, code yields a reference error. "dead_code" or "hoist_props" minifier options set to false mitigate the issue.
Input code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.4.6&code=H4sIAAAAAAAAA0WNUQqDMBBE%2Fz3F4FcCxQO42LskdbXWVmETFZHc3Zim9GdgHrP7WqU0mjuOAliNYLYvNKkBI%2B81Sjd%2FGM7LMPXlLfJAMfLaxu3%2FHnDb4B9PKKMzAFruzPL2da6AFTYjpRpSCvtFpstcRSP9FBl%2F31sqgqYT2Fivw60AAAA%3D&config=H4sIAAAAAAAAA32US3LbMAyG9zmFR%2Bts20UPkF3PwKFJUKbDh4YAHWsyvnshSrLdGNJOwocfIAEQ32%2BHQ3dG0%2F05fPMn%2Fwy6IJT7P1twTKSvbOnARI2m%2BIG695WecUJOB4Rmus2kI116oKbCX4t7F3JGWN0XW%2FTJu%2FE5oclxKID4ZGMrx6sREuH%2F%2BoWV%2FDUBKvXZfsw5gE47RGlUPhH0UKTAJoegBwR10UWIMp1UF49ZSjHBSmDVUPIg8mQ9%2BZw45yu1oK0y2YKAfAFD%2FgKSjHOxLCFfT7hPwxaOte9bk3%2Bo4aJD1STkhGtrCZ9WiHrKHkm5mqQSznCjBjNcivtT6Z0qQLWkV905%2B7TRk08ArkDQiElHkOI2D8fztKV2u0qfHI8sjQLn%2BZZumaDnoirvnVDZqTJQyEvdLGCrgamyRjrOgjfKh96CAud4VoTQ%2BOXJnKSkNA6QnQC4v9pJUzUDdX%2BFG3x6EDv4g29J8oAtHlHTaZviGI857CSIQKdsdxy4FZS3ceEtcR22eU0WeDTAii4VG3hdAvwAKKvQluXLbPDz4IiqD%2Fn4WBOLw%2B2%2BhKNO%2FeO9z3v4bXHoYra1wWXDT%2F2d9%2FLv7uG0buH1BJ3Hv6uw5bz9A1EN%2Bh8sBgAA
SWC Info output
No response
Expected behavior
d(function(){var b=function(){return a,"some string"};return function(){return b}});
Actual behavior
d(function(){var b=function(){return a,obj.key};return function(){return b}});
Version
1.4.6
Additional context
Modifying pass count reveals the intermediate error, with the key failure being in pass 2:
Pass 1:
d(function(){var obj={key:"some string"},b=function(){return a,obj.key};return function(){return b}});
Pass 2:
d(function(){var obj_key="some string",b=function(){return a,obj.key};return function(){return b}});
Pass 3:
d(function(){var b=function(){return a,obj.key};return function(){return b}});
The text was updated successfully, but these errors were encountered: