From 10dfa18d55edbb3eaab7baa0ab5e98329222e144 Mon Sep 17 00:00:00 2001 From: paoloricciuti Date: Sat, 21 Sep 2024 18:21:20 +0200 Subject: [PATCH] fix: missing space when importing run as in migration --- packages/svelte/src/compiler/migrate/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/svelte/src/compiler/migrate/index.js b/packages/svelte/src/compiler/migrate/index.js index c60d2c8719..89f03cc3e3 100644 --- a/packages/svelte/src/compiler/migrate/index.js +++ b/packages/svelte/src/compiler/migrate/index.js @@ -71,7 +71,7 @@ export function migrate(source) { state = { ...state, scope: analysis.template.scope }; walk(parsed.fragment, state, template); - const run_import = `import { run${state.run_name === 'run' ? '' : `as ${state.run_name}`} } from 'svelte/legacy';`; + const run_import = `import { run${state.run_name === 'run' ? '' : ` as ${state.run_name}`} } from 'svelte/legacy';`; let added_legacy_import = false; if (state.props.length > 0 || analysis.uses_rest_props || analysis.uses_props) {