Closed vonagam closed 11 months ago
LiveSvelte.Components.get_svelte_components
do not do search subdirectories since currently only top level svelte components are actually supported (in name_to_function
there is no expectation for name to include a directory, only a basename is used, meaning that component name prop will be wrong as it should include a full path), also removes need to filter out _build
folder. Can undo this change and add support for nested ones, it will expect that all components should have different basenames.Thanks for the changes/fixes!
The get_svelte_components
function has an error in it though, fn
doesn't end with end
. The other changes look good :)
Added end
.
Available in version 0.10.1
json
andliveJsonData
variables ingetLiveJsonProps
were missing declaration specifier. The code was not working in strict mode.Svelte was complaining about
compilerOptions.css
being boolean in the client config, set it to corresponding proper string value -injected
.hydrate
should be true only if there was ssr involved, was getting errors about it, addeddata-ssr
attribute to indicate server rendering.other stuff is just cosmetics, making things consistent.