davidmyersdev / vite-plugin-node-polyfills

A Vite plugin to polyfill Node's Core Modules for browser environments.
MIT License
263 stars 17 forks source link

remove 74 MByte yarn packages from git #2

Closed milahu closed 1 year ago

milahu commented 1 year ago
du -sh .yarn
# 74M     .yarn

du -sh .git
# 41M     .git

git filter-repo  --invert-paths \
--path .yarn/ --path .pnp.cjs --path .pnp.loader.mjs --path .yarnrc.yml

du -sh .git
# 224K    .git

done in my fork https://github.com/milahu/vite-plugin-node-polyfills

davidmyersdev commented 1 year ago

Hi @milahu. These files are not included when installing this package in another project. They are only included in source control to make local development of this package faster.

milahu commented 1 year ago

make local development of this package faster

no, fetching packages from github is as slow as fetching packages from npm

but maybe everybody else is doing it wrong : D

davidmyersdev commented 1 year ago

@milahu this is the recommended approach for Yarn 2+ with zero installs. I do see that I accidentally included the .yarn/unplugged dir though, so removing that should reduce the size a bit.