babel / minify

:scissors: An ES6+ aware minifier based on the Babel toolchain (beta)
https://babeljs.io/repl
MIT License
4.39k stars 225 forks source link

fix: mangling variables in default parameters #1024

Open binary-person opened 2 years ago

binary-person commented 2 years ago

fixes #1023 and #974

jamonholmgren commented 9 months ago

This fixes an issue I'm running into related to #974; it would be awesome to get some attention and merge this in.

In the meantime, since I'm using Yarn 3 to manage a monorepo, I made a new Yarn patch for this. You should be able to adapt this for patch-package as well... here's the original patch.

Thanks @binary-person for this PR!