fix: disclose version for custom renderers too

svelte-custom-renderer-single-type-argument
paoloricciuti 4 months ago
parent 2af595b31e
commit 1e62a1c6d4

@ -570,9 +570,7 @@ export function client_component(analysis, options) {
body.unshift(b.imports([], 'svelte/internal/flags/tracing'));
}
// disclose version attach the svelte version to `window` which is not guaranteed
// to be a thing in custom renderers environments
if (options.discloseVersion && !custom_renderer) {
if (options.discloseVersion) {
body.unshift(b.imports([], 'svelte/internal/disclose-version'));
}

Loading…
Cancel
Save