File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed
packages/svelte/src/internal Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " svelte " : patch
3
+ ---
4
+
5
+ fix: use nginx SSI-compatible comments for ` $props.id() `
Original file line number Diff line number Diff line change @@ -365,7 +365,7 @@ export function props_id() {
365
365
hydrating &&
366
366
hydrate_node &&
367
367
hydrate_node . nodeType === COMMENT_NODE &&
368
- hydrate_node . textContent ?. startsWith ( `# ` )
368
+ hydrate_node . textContent ?. startsWith ( `$ ` )
369
369
) {
370
370
const id = hydrate_node . textContent . substring ( 1 ) ;
371
371
hydrate_next ( ) ;
Original file line number Diff line number Diff line change @@ -448,7 +448,7 @@ export function once(get_value) {
448
448
*/
449
449
export function props_id ( renderer ) {
450
450
const uid = renderer . global . uid ( ) ;
451
- renderer . push ( '<!--# ' + uid + '-->' ) ;
451
+ renderer . push ( '<!--$ ' + uid + '-->' ) ;
452
452
return uid ;
453
453
}
454
454
You can’t perform that action at this time.
0 commit comments