developit / microbundle

📦 Zero-configuration bundler for tiny modules.
https://npm.im/microbundle
MIT License
8.06k stars 361 forks source link

Fix: Support booleans in minify options #858

Closed marcbouchenoire closed 3 years ago

marcbouchenoire commented 3 years ago

Context: Disabling Terser's mangling completely is only possible by setting mangle to false, but currently Microbundle replaces any non-object mangle option by {}.

This PR adds a special condition to allow the minify options compress and mangle to be set as booleans.

changeset-bot[bot] commented 3 years ago

🦋 Changeset detected

Latest commit: b857c4d322866cfa192ba2928acc7425930ab07c

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ----------- | ----- | | microbundle | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR