-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Is it necessary to redundantly specify components ? #1120
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
Comments
There's already some discussion about how to make this more succinct in #1038. Svelte compiles each component separately (and then they get bundled together later), so it can't actually tell whether a given import is intended as a component. And, similarly if you used a component without importing it, the bundler would not know where the component is supposed to come from. |
Well, It can tell by Convention, Let's say we have a |
Well, Svelte so far is pretty darn smooth (from me reading the docs) but somethings are plain weird. I mean why would it be necessary to redundantly do this
Isn't the
import
and theelement tag
fair enough reasons for the compiler to assume that it's a currently used component ?...The text was updated successfully, but these errors were encountered: