Disable minification by default

Open
#1,093 3 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
45/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
build-system

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.

Description

Minifying a library is actively hostile to patching tools like patch-package, 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.

Dominant language
JavaScript
Stars
8.1k
Forks
358
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from developit/microbundle

All issues in developit/microbundle

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.