Skip to content

Commit b612177

Browse files
committed
fix: format
1 parent 24e0e4f commit b612177

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

packages/svelte/src/compiler/phases/3-transform/client/transform-client.js

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -464,10 +464,8 @@ export function client_component(source, analysis, options) {
464464
if (options.hmr) {
465465
const accept_fn = b.arrow(
466466
[b.id('module')],
467-
b.block([
468-
b.stmt(b.call('$.set', b.id('s'), b.member(b.id('module'), b.id('default'))))
469-
])
470-
)
467+
b.block([b.stmt(b.call('$.set', b.id('s'), b.member(b.id('module'), b.id('default'))))])
468+
);
471469
body.push(
472470
component,
473471
b.if(
@@ -478,18 +476,9 @@ export function client_component(source, analysis, options) {
478476
b.if(
479477
b.id('import.meta.hot.acceptExports'),
480478
b.stmt(
481-
b.call(
482-
'import.meta.hot.acceptExports',
483-
b.array([b.literal('default')]),
484-
accept_fn
485-
)
479+
b.call('import.meta.hot.acceptExports', b.array([b.literal('default')]), accept_fn)
486480
),
487-
b.stmt(
488-
b.call(
489-
'import.meta.hot.accept',
490-
accept_fn
491-
)
492-
)
481+
b.stmt(b.call('import.meta.hot.accept', accept_fn))
493482
)
494483
])
495484
),

0 commit comments

Comments
 (0)