-
Notifications
You must be signed in to change notification settings - Fork 35
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
Core as a set of plugins #96
Comments
If you need just the transformers you can use |
We do need the component. Maybe we could have just the Svelte component need to be configured? Or maybe it could be exported from the package twice? E.g. (For what it's worth, I just watched this talk and saw at 10m that Angular requires you to configure a provider) |
So I'm still not sold on the actual API within components, but I am publishing a version of the unpic lib with subpath exports for all transformers in the form |
We just launched
@sveltejs/enhanced-img
for static images included in the user's project and are now trying to figure out how to handle images from CDNs. I had proposed using@unpic/svelte
as our solution there. However, an objection came up that it includes transformers and parsers for all CDNs instead of just the one that the user needs.It would be nice if we could make core a set of plugins where the user could register just the CDNs they're going to use. Optionally, we could provide a convenience method which registers all providers.
It looks like including the library currently adds about 38 kB unminified and we could probably cut that down a fair amount.
#82 is a bit related to this idea as well
If there's some level of interest, I may be able to contribute to this
The text was updated successfully, but these errors were encountered: