@lovable.dev/vite-tanstack-config 2.5.1-rc.0 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -10
- package/dist/index.js +4 -10
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -467,17 +467,11 @@ function defineConfig(configOrOptions = {}) {
|
|
|
467
467
|
]
|
|
468
468
|
},
|
|
469
469
|
// Dep re-optimization rotates the optimized-dep hash and 504s tabs holding
|
|
470
|
-
// the old one; pre-bundle
|
|
470
|
+
// the old one; pre-bundle the always-present client deps + tolerate stale
|
|
471
|
+
// requests. React core only — including @tanstack/react-start would pull its
|
|
472
|
+
// node:async_hooks server entry into the client bundle and crash hydration.
|
|
471
473
|
optimizeDeps: {
|
|
472
|
-
include: [
|
|
473
|
-
"react",
|
|
474
|
-
"react-dom",
|
|
475
|
-
"react-dom/client",
|
|
476
|
-
"react/jsx-runtime",
|
|
477
|
-
"react/jsx-dev-runtime",
|
|
478
|
-
"@tanstack/react-router",
|
|
479
|
-
"@tanstack/react-start"
|
|
480
|
-
],
|
|
474
|
+
include: ["react", "react-dom", "react-dom/client", "react/jsx-runtime", "react/jsx-dev-runtime"],
|
|
481
475
|
ignoreOutdatedRequests: true
|
|
482
476
|
},
|
|
483
477
|
plugins: [...internalPlugins, ...options.plugins ?? []]
|
package/dist/index.js
CHANGED
|
@@ -433,17 +433,11 @@ function defineConfig(configOrOptions = {}) {
|
|
|
433
433
|
]
|
|
434
434
|
},
|
|
435
435
|
// Dep re-optimization rotates the optimized-dep hash and 504s tabs holding
|
|
436
|
-
// the old one; pre-bundle
|
|
436
|
+
// the old one; pre-bundle the always-present client deps + tolerate stale
|
|
437
|
+
// requests. React core only — including @tanstack/react-start would pull its
|
|
438
|
+
// node:async_hooks server entry into the client bundle and crash hydration.
|
|
437
439
|
optimizeDeps: {
|
|
438
|
-
include: [
|
|
439
|
-
"react",
|
|
440
|
-
"react-dom",
|
|
441
|
-
"react-dom/client",
|
|
442
|
-
"react/jsx-runtime",
|
|
443
|
-
"react/jsx-dev-runtime",
|
|
444
|
-
"@tanstack/react-router",
|
|
445
|
-
"@tanstack/react-start"
|
|
446
|
-
],
|
|
440
|
+
include: ["react", "react-dom", "react-dom/client", "react/jsx-runtime", "react/jsx-dev-runtime"],
|
|
447
441
|
ignoreOutdatedRequests: true
|
|
448
442
|
},
|
|
449
443
|
plugins: [...internalPlugins, ...options.plugins ?? []]
|