@payloadcms/tanstack-start 4.0.0-internal.811e0a4 → 4.0.0-internal.8867dba
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/elements/RouterAdapter/index.d.ts.map +1 -1
- package/dist/elements/RouterAdapter/index.js +18 -2
- package/dist/elements/RouterAdapter/index.js.map +1 -1
- package/dist/exports/vite.d.ts +2 -12
- package/dist/exports/vite.d.ts.map +1 -1
- package/dist/exports/vite.js +1 -8
- package/dist/exports/vite.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/layouts/Root/withPayloadRoot.d.ts.map +1 -1
- package/dist/node/cssLoader.d.mts +24 -2
- package/dist/node/cssLoader.d.mts.map +1 -1
- package/dist/routes/adminRoutes.d.ts.map +1 -1
- package/dist/routes/layoutRoute.d.ts.map +1 -1
- package/dist/utilities/graphqlHandler.server.d.ts.map +1 -1
- package/dist/utilities/loadAdminPage.d.ts.map +1 -1
- package/dist/utilities/loadAdminPage.js +11 -2
- package/dist/utilities/loadAdminPage.js.map +1 -1
- package/dist/utilities/meta.d.ts +1 -0
- package/dist/utilities/meta.d.ts.map +1 -1
- package/dist/utilities/meta.js +2 -1
- package/dist/utilities/meta.js.map +1 -1
- package/dist/utilities/routerSearch.d.ts +40 -0
- package/dist/utilities/routerSearch.d.ts.map +1 -0
- package/dist/utilities/routerSearch.js +45 -0
- package/dist/utilities/routerSearch.js.map +1 -0
- package/dist/utilities/serverAdapter.server.d.ts.map +1 -1
- package/dist/vite/index.d.ts +81 -37
- package/dist/vite/index.d.ts.map +1 -1
- package/dist/vite/index.js +124 -107
- package/dist/vite/index.js.map +1 -1
- package/dist/vite/workarounds/devTransforms.d.ts.map +1 -1
- package/dist/vite/workarounds/devTransforms.js +5 -0
- package/dist/vite/workarounds/devTransforms.js.map +1 -1
- package/dist/vite/workarounds/stubPrettierInClient.d.ts +5 -13
- package/dist/vite/workarounds/stubPrettierInClient.d.ts.map +1 -1
- package/dist/vite/workarounds/stubPrettierInClient.js +8 -15
- package/dist/vite/workarounds/stubPrettierInClient.js.map +1 -1
- package/package.json +14 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/vite/workarounds/stubPrettierInClient.ts"],"sourcesContent":["import type { PluginOption } from 'vite'\n\n/**\n * Stubs `prettier` in the CLIENT bundle only.\n *\n * `payload`'s barrel transitively pulls `
|
|
1
|
+
{"version":3,"sources":["../../../src/vite/workarounds/stubPrettierInClient.ts"],"sourcesContent":["import type { PluginOption } from 'vite'\n\n/**\n * Stubs `prettier` in the CLIENT bundle only.\n *\n * `payload`'s barrel transitively pulls `json-schema-to-typescript` → `prettier`\n * (CommonJS) into the client graph. That path is type-gen only and never runs in\n * the browser, but the bundler still drags in `prettier`'s `index.cjs`, which\n * fails to parse as ESM and breaks the client build. SSR/RSC keep real prettier.\n *\n * Delete once `payload`'s barrel no longer reaches type-gen from the client graph.\n */\nexport function stubPrettierInClient(): PluginOption {\n const RESOLVED_ID = '\\0payload:prettier-client-stub'\n\n return {\n name: 'payload:stub-prettier-in-client',\n enforce: 'pre',\n load(id) {\n if (id === RESOLVED_ID) {\n return 'export const format = (source) => source;\\nexport default { format };'\n }\n },\n resolveId(id, importer, options) {\n if (options?.ssr) {\n return\n }\n // Only stub the type-gen import; leave a host's own client `prettier` alone.\n if (id === 'prettier' && importer?.includes('json-schema-to-typescript')) {\n return RESOLVED_ID\n }\n },\n }\n}\n"],"names":["stubPrettierInClient","RESOLVED_ID","name","enforce","load","id","resolveId","importer","options","ssr","includes"],"mappings":"AAEA;;;;;;;;;CASC,GACD,OAAO,SAASA;IACd,MAAMC,cAAc;IAEpB,OAAO;QACLC,MAAM;QACNC,SAAS;QACTC,MAAKC,EAAE;YACL,IAAIA,OAAOJ,aAAa;gBACtB,OAAO;YACT;QACF;QACAK,WAAUD,EAAE,EAAEE,QAAQ,EAAEC,OAAO;YAC7B,IAAIA,SAASC,KAAK;gBAChB;YACF;YACA,6EAA6E;YAC7E,IAAIJ,OAAO,cAAcE,UAAUG,SAAS,8BAA8B;gBACxE,OAAOT;YACT;QACF;IACF;AACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@payloadcms/tanstack-start",
|
|
3
|
-
"version": "4.0.0-internal.
|
|
3
|
+
"version": "4.0.0-internal.8867dba",
|
|
4
4
|
"description": "TanStack Start framework adapter for Payload",
|
|
5
5
|
"homepage": "https://payloadcms.com",
|
|
6
6
|
"repository": {
|
|
@@ -57,32 +57,39 @@
|
|
|
57
57
|
"dist"
|
|
58
58
|
],
|
|
59
59
|
"dependencies": {
|
|
60
|
-
"@vitejs/plugin-react": "^6.0.0",
|
|
61
|
-
"@vitejs/plugin-rsc": "^0.5.21",
|
|
62
60
|
"qs-esm": "^7.0.2",
|
|
63
|
-
"@payloadcms/translations": "4.0.0-internal.
|
|
64
|
-
"@payloadcms/ui": "4.0.0-internal.
|
|
61
|
+
"@payloadcms/translations": "4.0.0-internal.8867dba",
|
|
62
|
+
"@payloadcms/ui": "4.0.0-internal.8867dba"
|
|
65
63
|
},
|
|
66
64
|
"devDependencies": {
|
|
67
65
|
"@tanstack/react-router": "^1.120.0",
|
|
68
66
|
"@tanstack/react-start": "^1.168.26",
|
|
69
67
|
"@types/react": "^19.0.0",
|
|
70
68
|
"@types/react-dom": "^19.0.0",
|
|
69
|
+
"@vitejs/plugin-react": "^6.0.0",
|
|
71
70
|
"@vitejs/plugin-rsc": "^0.5.21",
|
|
72
71
|
"react": "^19.0.0",
|
|
73
72
|
"react-dom": "^19.0.0",
|
|
74
73
|
"vite": ">=8.0.0",
|
|
75
|
-
"payload": "4.0.0-internal.
|
|
74
|
+
"payload": "4.0.0-internal.8867dba"
|
|
76
75
|
},
|
|
77
76
|
"peerDependencies": {
|
|
78
77
|
"@tanstack/react-router": "^1.120.0",
|
|
79
78
|
"@tanstack/react-start": "^1.168.26",
|
|
79
|
+
"@vitejs/plugin-react": "^6.0.0",
|
|
80
|
+
"@vitejs/plugin-rsc": "^0.5.21",
|
|
80
81
|
"react": "^19.0.0",
|
|
81
82
|
"react-dom": "^19.0.0",
|
|
82
83
|
"vite": ">=8.0.0",
|
|
83
|
-
"payload": "4.0.0-internal.
|
|
84
|
+
"payload": "4.0.0-internal.8867dba"
|
|
84
85
|
},
|
|
85
86
|
"peerDependenciesMeta": {
|
|
87
|
+
"@vitejs/plugin-react": {
|
|
88
|
+
"optional": true
|
|
89
|
+
},
|
|
90
|
+
"@vitejs/plugin-rsc": {
|
|
91
|
+
"optional": true
|
|
92
|
+
},
|
|
86
93
|
"vite": {
|
|
87
94
|
"optional": true
|
|
88
95
|
}
|