Replies: 1 comment
-
It makes no difference for tree shaking and provides a better DX in most cases. That's why we recommend using a wildcard import. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In the docs the imports are always using asterik:
But wouldnt it be better to import every function separately? Or does it make no difference for tree shaking?
To me the first example sounds like "import the whole goddamn thing like back in the old days", while the second one is "ah yes, give me just what I need"
Beta Was this translation helpful? Give feedback.
All reactions