alloc / alloc/vite-plugin-compress

Move heavy dependencies to peerDependencies

Open
#9 0 comments 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
TypeScript
Stars
133
Forks
13
PR merge metrics
No merged PRs in 30d

Description

Heavy dependencies include:
- `html-minifier-terser` (in `next` branch only)
- `imagemin-pngquant`
- `imagemin-webp` (in `next` branch only)
- `svgo`

All of these take ~5 MB each.

**Benefits:**
- Less wasted space when not using a specific feature
- Faster installation

**Drawbacks:**
- More burdensome setup/maintenance
- A few wasted MB isn't the end of the world
- Their dependencies may overlap, so the "5 MB" figure could be overstated

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.