developit / developit/microbundle
Disable minification by default
- Dominant language
- JavaScript
- Stars
- 8.1k
- Forks
- 358
- PR merge metrics
- No merged PRs in 30d
Description
Minifying a library is actively hostile to patching tools like [patch-package](https://github.com/ds300/patch-package), [pnpm-patch-i](https://github.com/antfu/pnpm-patch-i), etc. It makes patches impossible to create without cloning the library and running its build step. On top of that, the patches produced are minified, so they're impossible to read and maintain.
There's no discernible benefit to a minified library. The improvement in download times is negligible. Bundlers like Vite/Webpack/etc already handle minification for user-facing applications.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by locating the default minification setting in the build configuration and inspect how the library output is generated. Done means minification is disabled by default and the resulting patches or library output are readable; the issue does not name a specific file or test to run.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100