Skip to content
This repository has been archived by the owner on Sep 6, 2023. It is now read-only.

Is it safe to import * as chains? #197

Closed Answered by tmm
holic asked this question in Q&A
Mar 28, 2023 · 1 comments · 2 replies
Discussion options

You must be logged in to vote

@wagmi/chains is only used for exporting Chains (and any required types, e.g. Chain) so other runtime code will not get pulled in when you do a namespace import. One thing you might want to check is tree-shakeability across popular bundlers for namespace imports.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@holic
Comment options

holic Mar 28, 2023
Author Sponsor

@tmm
Comment options

tmm Mar 28, 2023
Maintainer

Answer selected by holic
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants