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. https://github.com/ipfs/ipld-explorer-components/issues/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.
[ ] All dynamic imports should be marked as external in vite.config.ts so they're not included in the bundle
[ ] All dynamic imports should be marked as optionalDependencies but we should have some minimum-required hashers & codecs as peerDependencies
Describe alternatives you've considered
Include all imports not-dynamically: this increases bundle size and requires us to come edit this package any time we want to edit the explorer in explore.ipld.io or ipfs-webui
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 or ExploreProvider to load hashers & codecs.
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. https://github.com/ipfs/ipld-explorer-components/issues/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.