Munter / subfont

Command line tool to optimize your webfont loading. Aggressive subsetting based on your font use, self-hosting of Google fonts and preloading
MIT License
1.56k stars 29 forks source link

Distribute Subfont as a bundle (as well) #165

Open CxRes opened 2 years ago

CxRes commented 2 years ago

Distributing a library pre-built helps avoid bugs due to differences in configuration states between computers and is generally considered good practice. Additionally, in case of ES6 builds, downstream consumers can tree shake these anyway, so footprint is not an issue.

I understand this is yet another hassle for maintainers, but tooling is much better than even a few years ago. If nothing we can try throwing Parcel or Vite at it as they require minimal configuration. ESBuild is significantly faster but will require more configuration (I don't have much experience as I used Rollup for my work previously).

papandreou commented 2 years ago

Over the years I don't think we've actually seen many problems for end users that can be ascribed to differences in configuration state, or a newly buggy release of a dependency creeping in because of open version ranges. To me the main value proposition of a bundle would be subfont installing faster.

Could be interesting to do a spike on it. Would probably be a challenge to get the wasm-based libraries to load correctly, but I'm sure that could be overcome with a bit of effort.

I also like rollup for things like these, it's very flexible and powerful. I don't think build speed is much of an issue, as it only needs to happen on release.