Skip to content

Commit

Permalink
fix: missing space when importing run as in migration
Browse files Browse the repository at this point in the history
  • Loading branch information
paoloricciuti committed Sep 21, 2024
1 parent bc2d30c commit 10dfa18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/svelte/src/compiler/migrate/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 10dfa18

Please sign in to comment.