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
// ....other codeexportconststyleLoader=()=>{return{name: 'style-loader',setup(n){n.onLoad({filter: /.*/,namespace: 'less'},function(){varn=t(function*(n){});returnfunction(n){// n is args variablereturnn.apply(this,arguments);// when run the code get an error `n.apply is not a function`};}());}};};
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
In the case , output code :
before mangle output code is :
Input code
Config
Playground link
https://play.swc.rs/?version=1.3.24&code=H4sIAAAAAAAAA01QQW7DIBC8%2BxVzw67c5G4rlZpzq1b9AXHWLhIGi8VVI4u%2FBwhRgpCY3WFmB9S8WOex4cv8EFv9R%2B9u4hbf0nkl9Scxy4lirddJmft5XJU%2BI2B0doYgPqVa9JW6uY1cmJEfzUX639JOMBIV%2FWdmsIY92F80fVh5JocD6qYrs3B4w1YBjvzqTIaAkTN1EFnzqrNItJnheG2pc6DuOW1TlEDmdtakWfWGUWlPrsN%2B97JvszEvckjuOj5eILSQfDEDahl%2FprnHua0CQtNnFFKG0FdxXwGJ3Ag3WQEAAA%3D%3D&config=H4sIAAAAAAAAA22P3QrCMAyF3yXXu9gERfYOPoOEmo5q14YmG47Rd7eT%2FSB4leR8h3DODE8x0M7AmITSsskUFN%2FQgk5MYpJjhQpUimTRC%2BVyYOpIi4XkVDfngn2MQquhgt4FZ6flmYk9JxI5EIbO04I0sqeR%2FI5eRHw3HkUC9iS%2Fuv2jcXIjKpUZ%2BUCOrvsuaDG5pt6i5xK%2Bj49hTVAKfktcIB%2BhtzdyW42aBsofcZ6zHCkBAAA%3D
Expected behavior
The mangle results are the same as terser
Actual behavior
variable confusion
Version
1.3.24
Additional context
No response
The text was updated successfully, but these errors were encountered: