Skip to content

Commit 653c2cf

Browse files
committed
fix: Improved nesting in SSR
1 parent 5c2595c commit 653c2cf

10 files changed

Lines changed: 412 additions & 391 deletions

File tree

docs/architecture.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ For smaller bundle size you can disable this feature by passing `ssr: false` to
6060

6161
Svelte is rendered first, while building the vdom for React.
6262
Using string based methods:
63-
`<svelte-children-source>` from the Svelte is injected into the React's `<react-children-target>`
64-
`<react-portal-source>` from the React is then injected into the Svelte's `<svelte-portal-target>`
63+
`<svelte-children-1-source>` from the Svelte is injected into the React's `<react-children-1-target>`
64+
`<react-portal-1-source>` from the React is then injected into the Svelte's `<svelte-portal-1-target>`
6565

6666
This allows React to maintain it's component trees (needed for context)
6767
Note: Components created with `reactify` have trouble preserving the Svelte context

package.json

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,40 +46,40 @@
4646
"devDependencies": {
4747
"@playwright/test": "^1.48.2",
4848
"@sveltejs/adapter-static": "^3.0.6",
49-
"@sveltejs/kit": "^2.8.0",
49+
"@sveltejs/kit": "^2.8.1",
5050
"@sveltejs/package": "^2.3.7",
51-
"@sveltejs/vite-plugin-svelte": "4.0.0",
51+
"@sveltejs/vite-plugin-svelte": "4.0.1",
5252
"@testing-library/react": "^16.0.1",
5353
"@testing-library/svelte": "^5.2.4",
5454
"@types/node": "^22.9.0",
5555
"@types/react": "^18.3.12",
5656
"@types/react-dom": "^18.3.1",
5757
"autoprefixer": "^10.4.20",
5858
"concurrently": "^9.1.0",
59-
"eslint": "^9.14.0",
59+
"eslint": "9.14.0",
6060
"eslint-config-prettier": "^9.1.0",
6161
"eslint-plugin-only-warn": "^1.1.0",
6262
"eslint-plugin-react": "^7.37.2",
6363
"eslint-plugin-svelte": "^2.46.0",
6464
"globals": "^15.12.0",
65-
"happy-dom": "^15.11.0",
65+
"happy-dom": "^15.11.6",
6666
"husky": "^9.1.6",
6767
"lint-staged": "^15.2.10",
68-
"postcss": "^8.4.47",
68+
"postcss": "^8.4.49",
6969
"prettier": "^3.3.3",
70-
"prettier-plugin-svelte": "^3.2.7",
70+
"prettier-plugin-svelte": "^3.2.8",
7171
"react": "^18.3.1",
7272
"react-dom": "^18.3.1",
7373
"react-youtube": "^10.1.0",
74-
"svelte": "5.1.13",
75-
"svelte-check": "^4.0.6",
74+
"svelte": "5.2.2",
75+
"svelte-check": "^4.0.9",
7676
"svelte-youtube-lite": "~1.2.1",
77-
"svelte2tsx": "^0.7.23",
77+
"svelte2tsx": "^0.7.26",
7878
"typescript": "^5.6.3",
79-
"typescript-eslint": "^8.13.0",
80-
"vite": "^5.4.10",
81-
"vite-tsconfig-paths": "^5.1.1",
82-
"vitest": "^2.1.4"
79+
"typescript-eslint": "^8.14.0",
80+
"vite": "^5.4.11",
81+
"vite-tsconfig-paths": "^5.1.2",
82+
"vitest": "^2.1.5"
8383
},
8484
"dependencies": {
8585
"estree-walker": "^3.0.3",
@@ -123,11 +123,5 @@
123123
"./dist/react-router/index.d.ts"
124124
]
125125
}
126-
},
127-
"pnpm": {
128-
"overrides": {
129-
"svelte": "$svelte",
130-
"eslint": "$eslint"
131-
}
132126
}
133127
}

0 commit comments

Comments
 (0)