@lovable.dev/vite-tanstack-config 2.5.0 → 2.5.1-rc.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 +14 -0
- package/dist/index.js +14 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -466,6 +466,20 @@ function defineConfig(configOrOptions = {}) {
|
|
|
466
466
|
"@tanstack/query-core"
|
|
467
467
|
]
|
|
468
468
|
},
|
|
469
|
+
// Dep re-optimization rotates the optimized-dep hash and 504s tabs holding
|
|
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.
|
|
473
|
+
optimizeDeps: {
|
|
474
|
+
include: [
|
|
475
|
+
"react",
|
|
476
|
+
"react-dom",
|
|
477
|
+
"react-dom/client",
|
|
478
|
+
"react/jsx-runtime",
|
|
479
|
+
"react/jsx-dev-runtime"
|
|
480
|
+
],
|
|
481
|
+
ignoreOutdatedRequests: true
|
|
482
|
+
},
|
|
469
483
|
plugins: [...internalPlugins, ...options.plugins ?? []]
|
|
470
484
|
};
|
|
471
485
|
if (options.vite) {
|
package/dist/index.js
CHANGED
|
@@ -432,6 +432,20 @@ function defineConfig(configOrOptions = {}) {
|
|
|
432
432
|
"@tanstack/query-core"
|
|
433
433
|
]
|
|
434
434
|
},
|
|
435
|
+
// Dep re-optimization rotates the optimized-dep hash and 504s tabs holding
|
|
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.
|
|
439
|
+
optimizeDeps: {
|
|
440
|
+
include: [
|
|
441
|
+
"react",
|
|
442
|
+
"react-dom",
|
|
443
|
+
"react-dom/client",
|
|
444
|
+
"react/jsx-runtime",
|
|
445
|
+
"react/jsx-dev-runtime"
|
|
446
|
+
],
|
|
447
|
+
ignoreOutdatedRequests: true
|
|
448
|
+
},
|
|
435
449
|
plugins: [...internalPlugins, ...options.plugins ?? []]
|
|
436
450
|
};
|
|
437
451
|
if (options.vite) {
|