Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
213 changes: 138 additions & 75 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,11 @@
"@tanstack/history": "^1.161.6",
"@tanstack/router-core": "^1.169.1",
"@tanstack/solid-router": "^1.169.1",
"@tanstack/react-router": "^1.169.1",
"@triniwiz/nativescript-image-cache-it": "^8.0.1",
"@types/react": "^19.0.0",
"react": "^19.0.0",
"react-reconciler": "^0.32.0",
"babel-loader": "^9.1.3",
"babel-preset-solid": "^1.8.19",
"dominative": "^0.1.3",
Expand Down
14 changes: 12 additions & 2 deletions packages/tanstack-router/nativescript.vite.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,18 @@ export default () => ({
alias: {
// Keep Vite behavior aligned with nativescript.webpack.js integration.
'solid-js/web': solidWebShimPath,
'solid-js/jsx-runtime': jsxRuntimeShimPath,
'solid-js/jsx-dev-runtime': jsxRuntimeShimPath,
// NOTE: do NOT alias `solid-js/jsx-runtime` / `solid-js/jsx-dev-runtime` to a
// shim file INSIDE this package. @nativescript/vite (solid flavor) already provides
// its own jsx-runtime shim and serves it over HTTP. When this alias pointed at
// `./solid-js-jsx-runtime-shim.js` (a subpath of this vendored runtime plugin), the
// @nativescript/vite device rewriter collapsed that subpath to the vendor-package
// ROOT binding — `jsx = __nsPick("@nativescript/tanstack-router", "jsx")` — and the
// root has no `jsx` export, so `jsx` was `undefined`. Every `jsx(...)` call in the
// bundled router JSX (e.g. renderPage's `<RouterContextProvider><SafeRouteView/>`)
// then threw "jsx is not a function", the route Page never rendered, the Frame stayed
// empty, and the app showed a blank screen under HMR. Letting @nativescript/vite's
// HTTP-served shim resolve these keeps `jsx` a real function. (The webpack path still
// aliases them via nativescript.webpack.js, which has its own shim handling.)
...(solidJsHPath
? {
'solid-js/h': solidJsHPath,
Expand Down
Loading