You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm building svelte components dynamically, and part of this process is an intermediate file called .compiled.html which is essentially a svelte component built from a series of files.
What I'm seeing is that the compiled component adopts this intermediate filename as the exported module name. As you can imagine .compiled is not a valid Javascript variable name:
I'm building svelte components dynamically, and part of this process is an intermediate file called
.compiled.html
which is essentially a svelte component built from a series of files.What I'm seeing is that the compiled component adopts this intermediate filename as the exported module name. As you can imagine
.compiled
is not a valid Javascript variable name:This is an easy fix for me as I can simply specify the filename. However, I'd probably suggest that when I run:
svelte compile ./.compiled.html
that the default name is sanitized and either throws an error or is stripped of illegal characters during component generation.
The text was updated successfully, but these errors were encountered: