Skip to content

Commit b9c7f86

Browse files
committed
more
1 parent 9aa5449 commit b9c7f86

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,10 @@ export function client_component(source, analysis, options) {
449449

450450
if (!should_inject_props) {
451451
for (const declaration of analysis.instance.scope.declarations.values()) {
452+
if (declaration.declaration_kind === 'synthetic') {
453+
continue;
454+
}
455+
452456
if (
453457
declaration.kind === 'prop' ||
454458
declaration.kind === 'bindable_prop' ||

packages/svelte/tests/snapshot/samples/bind-this/_expected/client/index.svelte.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import "svelte/internal/disclose-version";
44
import * as $ from "svelte/internal/client";
55

6-
function Bind_this($$anchor, $$props) {
6+
function Bind_this($$anchor) {
77
var fragment = $.comment();
88
var node = $.first_child(fragment);
99

packages/svelte/tests/snapshot/samples/each-string-template/_expected/client/index.svelte.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import "svelte/internal/disclose-version";
44
import * as $ from "svelte/internal/client";
55

6-
function Each_string_template($$anchor, $$props) {
6+
function Each_string_template($$anchor) {
77
var fragment = $.comment();
88
var node = $.first_child(fragment);
99

packages/svelte/tests/snapshot/samples/hello-world/_expected/client/index.svelte.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as $ from "svelte/internal/client";
55

66
var root = $.template(`<h1>hello world</h1>`);
77

8-
function Hello_world($$anchor, $$props) {
8+
function Hello_world($$anchor) {
99
var h1 = root();
1010

1111
$.append($$anchor, h1);

packages/svelte/tests/snapshot/samples/hmr/_expected/client/index.svelte.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import * as $ from "svelte/internal/client";
55

66
var root = $.template(`<h1>hello world</h1>`);
77

8-
function Hmr($$anchor, $$props) {
8+
function Hmr($$anchor) {
99
var h1 = root();
1010

1111
$.append($$anchor, h1);

0 commit comments

Comments
 (0)