feat: dynamically import codecs and hashers and remove from bundle #452
Labels
effort/days
Estimated to take multiple days, but less than a week
exp/novice
Someone with a little familiarity can pick up
good first issue
Good issue for new contributors
help wanted
Seeking public contribution on this issue
kind/architecture
Core architecture of project
kind/enhancement
A net-new feature or improvement to an existing feature
P3
Low: Not priority right now
status/ready
Ready to be worked
Is your feature request related to a problem? Please describe.
When bundling this package, we want to make it possible for consumers to customize codecs and hashers. #415 made it possible to customize the links; now, we should allow consumers bundling this package to decide whether they want to import all the hashers & codecs or only some.
Describe the solution you'd like
external
invite.config.ts
so they're not included in the bundleoptionalDependencies
but we should have some minimum-required hashers & codecs aspeerDependencies
Describe alternatives you've considered
Additional context
This package is only included in ipfs-webui and explore.ipld.io, but we may wish to add new hashers, or remove others, and it would be nice if we could do that easily.
What is enabled by adding this feature
We will be able to allow further customization without as many edits to this package
This issue isn't tracking the work to customize hashers & codecs, but that should be the next step. Ideally we could pass functions into
HeliaProvider
orExploreProvider
to load hashers & codecs.The text was updated successfully, but these errors were encountered: