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
Currently with unsafe option, minifier reduces toString call expression with 1-item array.
When the only item in that array is empty hole, minifier results wrong output.
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
Currently with
unsafe
option, minifier reducestoString
call expression with 1-item array.When the only item in that array is empty hole, minifier results wrong output.
Input code
Config
Playground link (or link to the minimal reproduction)
https://play.swc.rs/?version=1.4.6&code=H4sIAAAAAAAAA0vOzyvOz0nVy8lP14jWidUryQ8uKcrMS9fQ1LQGAONauCgcAAAA&config=H4sIAAAAAAAAA32US47bMAyG9zlF4HUXRQp00QN01zMIikU5SvUwRCoTY5C7l5aVTJrQ3tn89JPiQ%2Fzc7ffdGfvu1%2F6TP%2Fln1BkhP%2F7ZglMkfWVLB33Q2Gc3UvftTs84I6s9QjXdFtKRzgNQVeHh%2B%2BHQFJ1PCeGuaLbgorPTc8w%2BhTED4pONreyyBIiE%2F%2Bsby%2BljBpTLs%2F2YkgcdN4jSqFwkGCBLjvvkvR4R1EVnwct8U50dJinEDAuBUWNOo8ijceRS5Jjv1IA2qk8GBOQy9OQuIMk4FssicnpCPhUbOJZhqH1%2BUcNF%2B6JJiAnX2hK%2BreD1lBySsiVKJVzgSg0W2Ir7qnRWZaCS47vunFxc6clfAK6A14hRB5D81hOW52lNbTeVLloeWZoEzvMtZRlh4KIq56xQ2bkykMlJ3cxgSg9zZXvpOg2vlA%2BdAQXW8qwIrvHDUX%2BSgtI0QrIC4P5qKYPFrh6P8PUijc%2FvYQP%2F5iRJnq92Img6rVOcwjH5jQAB6JTMxgHuBKV1nHlJXMd1XqIBngww4pGCFbzvAJ5%2FSsrXdfk2Gvw62KMafDqKW2LkMa89%2FNFst8duDjoOXztgWc%2B7dqALyZQK2%2BKfe76s65%2Fd16H7Zn5k0zn8c1fON9nd%2FgFe41a3RAYAAA%3D%3D
SWC Info output
No response
Expected behavior
or don't minify it
Actual behavior
Version
1.4.6
Additional context
No response
The text was updated successfully, but these errors were encountered: