@decocms/tanstack 7.8.0 → 7.10.0
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/package.json +4 -4
- package/src/vite/plugin.js +10 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decocms/tanstack",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.10.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Deco framework binding for TanStack Start + Cloudflare Workers",
|
|
6
6
|
"repository": {
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"lint:unused": "knip"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@decocms/blocks": "7.
|
|
28
|
-
"@decocms/blocks-admin": "7.
|
|
29
|
-
"@decocms/blocks-cli": "7.
|
|
27
|
+
"@decocms/blocks": "7.10.0",
|
|
28
|
+
"@decocms/blocks-admin": "7.10.0",
|
|
29
|
+
"@decocms/blocks-cli": "7.10.0",
|
|
30
30
|
"@deco-cx/warp-node": "^0.3.16",
|
|
31
31
|
"fast-json-patch": "^3.1.0",
|
|
32
32
|
"ws": "^8.18.0"
|
package/src/vite/plugin.js
CHANGED
|
@@ -205,6 +205,16 @@ export function decoVitePlugin() {
|
|
|
205
205
|
// runtime without any module invalidation (which breaks TanStack
|
|
206
206
|
// Start/Router state).
|
|
207
207
|
//
|
|
208
|
+
// NOTE: @decocms/nextjs takes the opposite approach — a generated
|
|
209
|
+
// static-import manifest (blocks-cli's generate-blocks-manifest.ts,
|
|
210
|
+
// wired as `createNextSetup({ blocks, blocksDir: false })`) that makes
|
|
211
|
+
// the bundler's own module-graph invalidation the content-reload
|
|
212
|
+
// mechanism. That design is deliberately NOT used here: a spike on
|
|
213
|
+
// TanStack Start 1.166 × @cloudflare/vite-plugin showed ANY SSR module
|
|
214
|
+
// invalidation bricks the router (the pre-existing upstream bug called
|
|
215
|
+
// out above), so this plugin's no-invalidation delta machinery below
|
|
216
|
+
// stays the TanStack dev-reload path until that's fixed upstream.
|
|
217
|
+
//
|
|
208
218
|
// Generator is loaded lazily via tsImport (same pattern as the daemon
|
|
209
219
|
// below) so we don't depend on the consumer's TS loader.
|
|
210
220
|
const cwd = process.cwd();
|