-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
No compile errors when passing empty directive names #6299
Labels
Comments
Unable to reproduce in the repl. The one-line App.svelte component of Which version is this? |
You already reproduced it. This message because rollup cannot parse the invalid generated code |
In 3.39.0, this now throws a compiler error. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Looks like I can pass empty directive names which can generate invalid JS code without any compilation errors or with unclear errors
For example in actions
Parts of generated code looks like:
Same happens with event directive. but it does not throw JS syntax error
With bind and animation directives. It throws an error because it is not able to look for the empty variable name in the component.
[!] (plugin svelte) ValidationError: is not declared
The text was updated successfully, but these errors were encountered: