Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distribute Subfont as a bundle (as well) #165

Open
CxRes opened this issue Jul 30, 2022 · 1 comment
Open

Distribute Subfont as a bundle (as well) #165

CxRes opened this issue Jul 30, 2022 · 1 comment

Comments

@CxRes
Copy link

CxRes commented Jul 30, 2022

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
Copy link
Collaborator

papandreou commented Jul 30, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants