remove errant newline

pull/13362/head
Rich Harris 2 years ago
parent d8430198d0
commit 821fc5f255

@ -168,7 +168,7 @@ export function migrate(source) {
const imports = state.legacy_imports.size > 0 ? `${indent}${legacy_import}\n` : '';
const script_insertions =
state.script_insertions.size > 0
? `\n${indent}${[...state.script_insertions].join(indent)}\n`
? `\n${indent}${[...state.script_insertions].join(`\n${indent}`)}`
: '';
str.prepend(
`<script>\n${imports}${indent}${props_declaration}${script_insertions}\n</script>\n\n`
@ -222,7 +222,7 @@ export function migrate(source) {
if (state.legacy_imports.size > 0 && !added_legacy_import) {
const script_insertions =
state.script_insertions.size > 0
? `\n${indent}${[...state.script_insertions].join(indent)}`
? `\n${indent}${[...state.script_insertions].join(`\n${indent}`)}`
: '';
if (parsed.instance) {
@ -749,7 +749,7 @@ function handle_events(element, state) {
} else {
state.legacy_imports.add('createBubbler');
state.script_insertions.add(
`const ${state.names.bubble} = ${state.names.createBubbler}();\n`
`const ${state.names.bubble} = ${state.names.createBubbler}();`
);
}

@ -2,7 +2,6 @@
import { handlers as handlers_1, createBubbler as createBubbler_1, preventDefault as preventDefault_1, stopPropagation as stopPropagation_1, stopImmediatePropagation as stopImmediatePropagation_1, self as self_1, trusted as trusted_1, once as once_1, passive as passive_1, nonpassive as nonpassive_1 } from 'svelte/legacy';
const bubble_1 = createBubbler_1();
let handlers;
let stopPropagation;
let preventDefault;

@ -2,7 +2,6 @@
import { handlers, createBubbler, preventDefault, stopPropagation, stopImmediatePropagation, self, trusted, once, passive, nonpassive } from 'svelte/legacy';
const bubble = createBubbler();
</script>
<button onclick={handlers(

Loading…
Cancel
Save