Skip to content

Commit 7c02467

Browse files
committed
this makes it work. i don't fully understand why
1 parent ec70713 commit 7c02467

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ export function client_component(source, analysis, options) {
493493
body.unshift(b.imports([['createClassComponent', '$$_createClassComponent']], 'svelte/legacy'));
494494
component_block.body.unshift(
495495
b.if(
496-
b.binary('===', b.id('new.target'), b.id(analysis.name)),
496+
b.id('new.target'),
497497
b.return(
498498
b.call(
499499
'$$_createClassComponent',

0 commit comments

Comments
 (0)