@payloadcms/tanstack-start 4.0.0-internal.183b315 → 4.0.0-internal.21664f3

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.
Files changed (153) hide show
  1. package/LICENSE.md +1 -1
  2. package/dist/elements/RouterAdapter/index.d.ts.map +1 -1
  3. package/dist/elements/RouterAdapter/index.js +55 -16
  4. package/dist/elements/RouterAdapter/index.js.map +1 -1
  5. package/dist/exports/client.d.ts +4 -0
  6. package/dist/exports/client.d.ts.map +1 -1
  7. package/dist/exports/client.js +4 -0
  8. package/dist/exports/client.js.map +1 -1
  9. package/dist/exports/layouts.d.ts +1 -0
  10. package/dist/exports/layouts.d.ts.map +1 -1
  11. package/dist/exports/layouts.js +1 -0
  12. package/dist/exports/layouts.js.map +1 -1
  13. package/dist/exports/server.d.ts +3 -2
  14. package/dist/exports/server.d.ts.map +1 -1
  15. package/dist/exports/server.js +3 -2
  16. package/dist/exports/server.js.map +1 -1
  17. package/dist/exports/vite.d.ts +2 -2
  18. package/dist/exports/vite.d.ts.map +1 -1
  19. package/dist/exports/vite.js +1 -1
  20. package/dist/exports/vite.js.map +1 -1
  21. package/dist/index.d.ts +2 -0
  22. package/dist/index.d.ts.map +1 -1
  23. package/dist/index.js +2 -0
  24. package/dist/index.js.map +1 -1
  25. package/dist/layouts/Root/getLayoutData.d.ts.map +1 -1
  26. package/dist/layouts/Root/getLayoutData.js +37 -1
  27. package/dist/layouts/Root/getLayoutData.js.map +1 -1
  28. package/dist/layouts/Root/index.d.ts +9 -2
  29. package/dist/layouts/Root/index.d.ts.map +1 -1
  30. package/dist/layouts/Root/index.js +4 -2
  31. package/dist/layouts/Root/index.js.map +1 -1
  32. package/dist/layouts/Root/withPayloadRoot.d.ts +41 -0
  33. package/dist/layouts/Root/withPayloadRoot.d.ts.map +1 -0
  34. package/dist/layouts/Root/withPayloadRoot.js +91 -0
  35. package/dist/layouts/Root/withPayloadRoot.js.map +1 -0
  36. package/dist/node/cssLoader.d.mts +24 -2
  37. package/dist/node/cssLoader.d.mts.map +1 -1
  38. package/dist/routes/adminRoutes.d.ts +111 -0
  39. package/dist/routes/adminRoutes.d.ts.map +1 -0
  40. package/dist/routes/adminRoutes.js +108 -0
  41. package/dist/routes/adminRoutes.js.map +1 -0
  42. package/dist/routes/apiRoute.d.ts +29 -0
  43. package/dist/routes/apiRoute.d.ts.map +1 -0
  44. package/dist/routes/apiRoute.js +38 -0
  45. package/dist/routes/apiRoute.js.map +1 -0
  46. package/dist/routes/layoutRoute.d.ts +26 -0
  47. package/dist/routes/layoutRoute.d.ts.map +1 -0
  48. package/dist/routes/layoutRoute.js +57 -0
  49. package/dist/routes/layoutRoute.js.map +1 -0
  50. package/dist/utilities/graphqlHandler.server.d.ts.map +1 -1
  51. package/dist/utilities/handleAPIRoute.d.ts +11 -0
  52. package/dist/utilities/handleAPIRoute.d.ts.map +1 -0
  53. package/dist/utilities/handleAPIRoute.js +17 -0
  54. package/dist/utilities/handleAPIRoute.js.map +1 -0
  55. package/dist/utilities/importMap.server.d.ts +4 -5
  56. package/dist/utilities/importMap.server.d.ts.map +1 -1
  57. package/dist/utilities/importMap.server.js +5 -6
  58. package/dist/utilities/importMap.server.js.map +1 -1
  59. package/dist/utilities/loadAdminPage.d.ts +54 -0
  60. package/dist/utilities/loadAdminPage.d.ts.map +1 -0
  61. package/dist/utilities/loadAdminPage.js +239 -0
  62. package/dist/utilities/loadAdminPage.js.map +1 -0
  63. package/dist/utilities/loadLayoutData.d.ts +15 -0
  64. package/dist/utilities/loadLayoutData.d.ts.map +1 -0
  65. package/dist/utilities/loadLayoutData.js +23 -0
  66. package/dist/utilities/loadLayoutData.js.map +1 -0
  67. package/dist/utilities/meta.d.ts +1 -0
  68. package/dist/utilities/meta.d.ts.map +1 -1
  69. package/dist/utilities/meta.js +2 -1
  70. package/dist/utilities/meta.js.map +1 -1
  71. package/dist/utilities/routerSearch.d.ts +40 -0
  72. package/dist/utilities/routerSearch.d.ts.map +1 -0
  73. package/dist/utilities/routerSearch.js +45 -0
  74. package/dist/utilities/routerSearch.js.map +1 -0
  75. package/dist/utilities/serializeForRsc.d.ts.map +1 -1
  76. package/dist/utilities/serializeForRsc.js +17 -0
  77. package/dist/utilities/serializeForRsc.js.map +1 -1
  78. package/dist/utilities/serverAdapter.server.d.ts.map +1 -1
  79. package/dist/utilities/serverFunctionClient.d.ts +29 -0
  80. package/dist/utilities/serverFunctionClient.d.ts.map +1 -0
  81. package/dist/utilities/serverFunctionClient.js +109 -0
  82. package/dist/utilities/serverFunctionClient.js.map +1 -0
  83. package/dist/vite/config/external.d.ts +11 -0
  84. package/dist/vite/config/external.d.ts.map +1 -0
  85. package/dist/vite/config/external.js +48 -0
  86. package/dist/vite/config/external.js.map +1 -0
  87. package/dist/vite/config/optimizeDeps.d.ts +25 -0
  88. package/dist/vite/config/optimizeDeps.d.ts.map +1 -0
  89. package/dist/vite/config/optimizeDeps.js +123 -0
  90. package/dist/vite/config/optimizeDeps.js.map +1 -0
  91. package/dist/vite/config/scss.d.ts +14 -0
  92. package/dist/vite/config/scss.d.ts.map +1 -0
  93. package/dist/vite/config/scss.js +28 -0
  94. package/dist/vite/config/scss.js.map +1 -0
  95. package/dist/vite/index.d.ts +99 -0
  96. package/dist/vite/index.d.ts.map +1 -0
  97. package/dist/vite/index.js +258 -0
  98. package/dist/vite/index.js.map +1 -0
  99. package/dist/vite/workarounds/clientModuleResolution.d.ts.map +1 -0
  100. package/dist/vite/workarounds/clientModuleResolution.js.map +1 -0
  101. package/dist/vite/workarounds/devTransforms.d.ts +19 -0
  102. package/dist/vite/workarounds/devTransforms.d.ts.map +1 -0
  103. package/dist/vite/{plugins → workarounds}/devTransforms.js +18 -2
  104. package/dist/vite/workarounds/devTransforms.js.map +1 -0
  105. package/dist/vite/workarounds/reactDomServerInRsc.d.ts.map +1 -0
  106. package/dist/vite/workarounds/reactDomServerInRsc.js.map +1 -0
  107. package/dist/vite/workarounds/stripDistStyleImports.d.ts.map +1 -0
  108. package/dist/vite/workarounds/stripDistStyleImports.js +140 -0
  109. package/dist/vite/workarounds/stripDistStyleImports.js.map +1 -0
  110. package/dist/vite/workarounds/stubPrettierInClient.d.ts +13 -0
  111. package/dist/vite/workarounds/stubPrettierInClient.d.ts.map +1 -0
  112. package/dist/vite/workarounds/stubPrettierInClient.js +32 -0
  113. package/dist/vite/workarounds/stubPrettierInClient.js.map +1 -0
  114. package/dist/vite/workarounds/wrapCjsForClient.d.ts.map +1 -0
  115. package/dist/vite/workarounds/wrapCjsForClient.js.map +1 -0
  116. package/package.json +12 -7
  117. package/dist/@types/assets.d.js +0 -2
  118. package/dist/@types/assets.d.js.map +0 -1
  119. package/dist/auth/switchLanguage.d.ts +0 -6
  120. package/dist/auth/switchLanguage.d.ts.map +0 -1
  121. package/dist/auth/switchLanguage.js +0 -11
  122. package/dist/auth/switchLanguage.js.map +0 -1
  123. package/dist/utilities/getRequestTheme.d.ts +0 -10
  124. package/dist/utilities/getRequestTheme.d.ts.map +0 -1
  125. package/dist/utilities/getRequestTheme.js +0 -25
  126. package/dist/utilities/getRequestTheme.js.map +0 -1
  127. package/dist/vite/constants.d.ts +0 -37
  128. package/dist/vite/constants.d.ts.map +0 -1
  129. package/dist/vite/constants.js +0 -129
  130. package/dist/vite/constants.js.map +0 -1
  131. package/dist/vite/plugin.d.ts +0 -38
  132. package/dist/vite/plugin.d.ts.map +0 -1
  133. package/dist/vite/plugin.js +0 -182
  134. package/dist/vite/plugin.js.map +0 -1
  135. package/dist/vite/plugins/clientModuleResolution.d.ts.map +0 -1
  136. package/dist/vite/plugins/clientModuleResolution.js.map +0 -1
  137. package/dist/vite/plugins/devTransforms.d.ts +0 -8
  138. package/dist/vite/plugins/devTransforms.d.ts.map +0 -1
  139. package/dist/vite/plugins/devTransforms.js.map +0 -1
  140. package/dist/vite/plugins/reactDomServerInRsc.d.ts.map +0 -1
  141. package/dist/vite/plugins/reactDomServerInRsc.js.map +0 -1
  142. package/dist/vite/plugins/stripDistStyleImports.d.ts.map +0 -1
  143. package/dist/vite/plugins/stripDistStyleImports.js +0 -89
  144. package/dist/vite/plugins/stripDistStyleImports.js.map +0 -1
  145. package/dist/vite/plugins/wrapCjsForClient.d.ts.map +0 -1
  146. package/dist/vite/plugins/wrapCjsForClient.js.map +0 -1
  147. /package/dist/vite/{plugins → workarounds}/clientModuleResolution.d.ts +0 -0
  148. /package/dist/vite/{plugins → workarounds}/clientModuleResolution.js +0 -0
  149. /package/dist/vite/{plugins → workarounds}/reactDomServerInRsc.d.ts +0 -0
  150. /package/dist/vite/{plugins → workarounds}/reactDomServerInRsc.js +0 -0
  151. /package/dist/vite/{plugins → workarounds}/stripDistStyleImports.d.ts +0 -0
  152. /package/dist/vite/{plugins → workarounds}/wrapCjsForClient.d.ts +0 -0
  153. /package/dist/vite/{plugins → workarounds}/wrapCjsForClient.js +0 -0
@@ -0,0 +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 `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"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wrapCjsForClient.d.ts","sourceRoot":"","sources":["../../../src/vite/workarounds/wrapCjsForClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAExC;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,IAAI,YAAY,CAqE/C"}
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/vite/workarounds/wrapCjsForClient.ts"],"sourcesContent":["import type { PluginOption } from 'vite'\n\n/**\n * Wraps CJS `node_modules` files in ESM-compatible code when served to the\n * client.\n *\n * Packages in `optimizeDeps.exclude` (like `payload`, `@payloadcms/ui`) import\n * CJS dependencies that Vite serves via raw `/@fs/` URLs, bypassing\n * pre-bundling. The browser fails to parse them because they use\n * `module.exports` / `exports.X` syntax.\n *\n * This plugin detects CJS patterns in the transform phase and wraps them with\n * a CommonJS-like runtime shim so the browser can execute them as ESM.\n */\nexport function wrapCjsForClient(): PluginOption {\n return {\n name: 'payload:wrap-cjs-client',\n apply: 'serve',\n enforce: 'post',\n transform(code, id, options) {\n if (options?.ssr) {\n return\n }\n\n if (!id.includes('/node_modules/') || id.includes('/node_modules/.vite/')) {\n return\n }\n\n const cleanId = id.replace(/\\?.*$/, '')\n if (!cleanId.endsWith('.js') && !cleanId.endsWith('.cjs')) {\n return\n }\n\n if (code.includes('import ') || code.includes('export ')) {\n return\n }\n\n if (\n !code.includes('module.exports') &&\n !code.includes('exports.') &&\n !code.includes('Object.defineProperty(exports')\n ) {\n return\n }\n\n const namedExports = extractCjsExports(code)\n const names = Object.keys(namedExports)\n\n const declaredIdentifiers = extractDeclaredIdentifiers(code)\n const safeNames = names.filter((name) => !declaredIdentifiers.has(name))\n\n // If the module already declares its own top-level `require` (rare but\n // possible for hand-written CJS), skip injecting our stub so we don't\n // produce a `SyntaxError: Identifier 'require' has already been declared`.\n const injectRequireStub = !declaredIdentifiers.has('require')\n\n const wrapped = [\n `var module = { exports: {} };`,\n `var exports = module.exports;`,\n // Expose a `require` stub so UMD wrappers that gate their CJS branch on\n // `typeof require === 'function'` (e.g. pluralize) take that branch and\n // assign to our `module.exports` instead of falling through to the\n // browser-globals branch (`root.foo = ...`), which throws in strict ESM\n // because the IIFE receives `this === undefined`.\n // The stub throws on actual invocation so any module that *really* needs\n // require fails loudly instead of silently misbehaving.\n injectRequireStub\n ? `var require = function require() { throw new Error(\"require() is not available in the browser bundle\"); };`\n : ``,\n ``,\n code,\n ``,\n `var __cjs_result__ = module.exports;`,\n `export default __cjs_result__;`,\n ...safeNames.map(\n (name) =>\n `export var ${name} = typeof __cjs_result__ === 'object' && __cjs_result__ !== null ? __cjs_result__[\"${name}\"] : undefined;`,\n ),\n ].join('\\n')\n\n return { code: wrapped, map: null }\n },\n }\n}\n\nfunction extractCjsExports(code: string): Record<string, true> {\n const found: Record<string, true> = {}\n const patterns = [\n /exports\\.(\\w+)\\s*=/g,\n /exports\\[[\"'](\\w+)[\"']\\]\\s*=/g,\n /Object\\.defineProperty\\(exports,\\s*[\"'](\\w+)[\"']/g,\n ]\n for (const re of patterns) {\n let m\n while ((m = re.exec(code)) !== null) {\n const name = m[1]!\n if (name !== '__esModule' && name !== 'default') {\n found[name] = true\n }\n }\n }\n return found\n}\n\n/**\n * Detects top-level identifiers declared with class/function/var/let/const in\n * CJS code. Used to avoid re-declaring them via `export var` in the CJS\n * wrapper, which would cause `SyntaxError: Identifier has already been\n * declared` in strict mode (ESM).\n */\nfunction extractDeclaredIdentifiers(code: string): Set<string> {\n const identifiers = new Set<string>()\n const patterns = [/\\bclass\\s+(\\w+)/g, /\\bfunction\\s+(\\w+)/g, /\\b(?:var|let|const)\\s+(\\w+)/g]\n for (const re of patterns) {\n let m\n while ((m = re.exec(code)) !== null) {\n identifiers.add(m[1]!)\n }\n }\n return identifiers\n}\n"],"names":["wrapCjsForClient","name","apply","enforce","transform","code","id","options","ssr","includes","cleanId","replace","endsWith","namedExports","extractCjsExports","names","Object","keys","declaredIdentifiers","extractDeclaredIdentifiers","safeNames","filter","has","injectRequireStub","wrapped","map","join","found","patterns","re","m","exec","identifiers","Set","add"],"mappings":"AAEA;;;;;;;;;;;CAWC,GACD,OAAO,SAASA;IACd,OAAO;QACLC,MAAM;QACNC,OAAO;QACPC,SAAS;QACTC,WAAUC,IAAI,EAAEC,EAAE,EAAEC,OAAO;YACzB,IAAIA,SAASC,KAAK;gBAChB;YACF;YAEA,IAAI,CAACF,GAAGG,QAAQ,CAAC,qBAAqBH,GAAGG,QAAQ,CAAC,yBAAyB;gBACzE;YACF;YAEA,MAAMC,UAAUJ,GAAGK,OAAO,CAAC,SAAS;YACpC,IAAI,CAACD,QAAQE,QAAQ,CAAC,UAAU,CAACF,QAAQE,QAAQ,CAAC,SAAS;gBACzD;YACF;YAEA,IAAIP,KAAKI,QAAQ,CAAC,cAAcJ,KAAKI,QAAQ,CAAC,YAAY;gBACxD;YACF;YAEA,IACE,CAACJ,KAAKI,QAAQ,CAAC,qBACf,CAACJ,KAAKI,QAAQ,CAAC,eACf,CAACJ,KAAKI,QAAQ,CAAC,kCACf;gBACA;YACF;YAEA,MAAMI,eAAeC,kBAAkBT;YACvC,MAAMU,QAAQC,OAAOC,IAAI,CAACJ;YAE1B,MAAMK,sBAAsBC,2BAA2Bd;YACvD,MAAMe,YAAYL,MAAMM,MAAM,CAAC,CAACpB,OAAS,CAACiB,oBAAoBI,GAAG,CAACrB;YAElE,uEAAuE;YACvE,sEAAsE;YACtE,2EAA2E;YAC3E,MAAMsB,oBAAoB,CAACL,oBAAoBI,GAAG,CAAC;YAEnD,MAAME,UAAU;gBACd,CAAC,6BAA6B,CAAC;gBAC/B,CAAC,6BAA6B,CAAC;gBAC/B,wEAAwE;gBACxE,wEAAwE;gBACxE,mEAAmE;gBACnE,wEAAwE;gBACxE,kDAAkD;gBAClD,yEAAyE;gBACzE,wDAAwD;gBACxDD,oBACI,CAAC,0GAA0G,CAAC,GAC5G,EAAE;gBACN,EAAE;gBACFlB;gBACA,EAAE;gBACF,CAAC,oCAAoC,CAAC;gBACtC,CAAC,8BAA8B,CAAC;mBAC7Be,UAAUK,GAAG,CACd,CAACxB,OACC,CAAC,WAAW,EAAEA,KAAK,mFAAmF,EAAEA,KAAK,eAAe,CAAC;aAElI,CAACyB,IAAI,CAAC;YAEP,OAAO;gBAAErB,MAAMmB;gBAASC,KAAK;YAAK;QACpC;IACF;AACF;AAEA,SAASX,kBAAkBT,IAAY;IACrC,MAAMsB,QAA8B,CAAC;IACrC,MAAMC,WAAW;QACf;QACA;QACA;KACD;IACD,KAAK,MAAMC,MAAMD,SAAU;QACzB,IAAIE;QACJ,MAAO,AAACA,CAAAA,IAAID,GAAGE,IAAI,CAAC1B,KAAI,MAAO,KAAM;YACnC,MAAMJ,OAAO6B,CAAC,CAAC,EAAE;YACjB,IAAI7B,SAAS,gBAAgBA,SAAS,WAAW;gBAC/C0B,KAAK,CAAC1B,KAAK,GAAG;YAChB;QACF;IACF;IACA,OAAO0B;AACT;AAEA;;;;;CAKC,GACD,SAASR,2BAA2Bd,IAAY;IAC9C,MAAM2B,cAAc,IAAIC;IACxB,MAAML,WAAW;QAAC;QAAoB;QAAuB;KAA+B;IAC5F,KAAK,MAAMC,MAAMD,SAAU;QACzB,IAAIE;QACJ,MAAO,AAACA,CAAAA,IAAID,GAAGE,IAAI,CAAC1B,KAAI,MAAO,KAAM;YACnC2B,YAAYE,GAAG,CAACJ,CAAC,CAAC,EAAE;QACtB;IACF;IACA,OAAOE;AACT"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payloadcms/tanstack-start",
3
- "version": "4.0.0-internal.183b315",
3
+ "version": "4.0.0-internal.21664f3",
4
4
  "description": "TanStack Start framework adapter for Payload",
5
5
  "homepage": "https://payloadcms.com",
6
6
  "repository": {
@@ -58,33 +58,38 @@
58
58
  ],
59
59
  "dependencies": {
60
60
  "qs-esm": "^7.0.2",
61
- "@payloadcms/translations": "4.0.0-internal.183b315",
62
- "@payloadcms/ui": "4.0.0-internal.183b315"
61
+ "@payloadcms/translations": "4.0.0-internal.21664f3",
62
+ "@payloadcms/ui": "4.0.0-internal.21664f3"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@tanstack/react-router": "^1.120.0",
66
- "@tanstack/react-start": "^1.120.0",
66
+ "@tanstack/react-start": "^1.168.26",
67
67
  "@types/react": "^19.0.0",
68
68
  "@types/react-dom": "^19.0.0",
69
69
  "@vitejs/plugin-react": "^6.0.0",
70
+ "@vitejs/plugin-rsc": "^0.5.21",
70
71
  "react": "^19.0.0",
71
72
  "react-dom": "^19.0.0",
72
73
  "vite": ">=8.0.0",
73
- "payload": "4.0.0-beta.0"
74
+ "payload": "4.0.0-internal.21664f3"
74
75
  },
75
76
  "peerDependencies": {
76
77
  "@tanstack/react-router": "^1.120.0",
77
- "@tanstack/react-start": "^1.120.0",
78
+ "@tanstack/react-start": "^1.168.26",
78
79
  "@vitejs/plugin-react": "^6.0.0",
80
+ "@vitejs/plugin-rsc": "^0.5.21",
79
81
  "react": "^19.0.0",
80
82
  "react-dom": "^19.0.0",
81
83
  "vite": ">=8.0.0",
82
- "payload": "4.0.0-beta.0"
84
+ "payload": "4.0.0-internal.21664f3"
83
85
  },
84
86
  "peerDependenciesMeta": {
85
87
  "@vitejs/plugin-react": {
86
88
  "optional": true
87
89
  },
90
+ "@vitejs/plugin-rsc": {
91
+ "optional": true
92
+ },
88
93
  "vite": {
89
94
  "optional": true
90
95
  }
@@ -1,2 +0,0 @@
1
-
2
- //# sourceMappingURL=assets.d.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/@types/assets.d.ts"],"names":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- import type { MaybePromise, SanitizedConfig } from 'payload';
2
- export declare function switchLanguage({ config, language, }: {
3
- config: MaybePromise<SanitizedConfig>;
4
- language: string;
5
- }): Promise<void>;
6
- //# sourceMappingURL=switchLanguage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"switchLanguage.d.ts","sourceRoot":"","sources":["../../src/auth/switchLanguage.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAK5D,wBAAsB,cAAc,CAAC,EACnC,MAAM,EACN,QAAQ,GACT,EAAE;IACD,MAAM,EAAE,YAAY,CAAC,eAAe,CAAC,CAAA;IACrC,QAAQ,EAAE,MAAM,CAAA;CACjB,iBAQA"}
@@ -1,11 +0,0 @@
1
- import { setResponseHeader } from '@tanstack/react-start/server';
2
- import { getPayload } from 'payload';
3
- export async function switchLanguage({ config, language }) {
4
- const payload = await getPayload({
5
- config
6
- });
7
- const cookiePrefix = payload.config.cookiePrefix || 'payload';
8
- setResponseHeader('Set-Cookie', `${encodeURIComponent(`${cookiePrefix}-lng`)}=${encodeURIComponent(language)}; Path=/`);
9
- }
10
-
11
- //# sourceMappingURL=switchLanguage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/auth/switchLanguage.ts"],"sourcesContent":["import type { MaybePromise, SanitizedConfig } from 'payload'\n\nimport { setResponseHeader } from '@tanstack/react-start/server'\nimport { getPayload } from 'payload'\n\nexport async function switchLanguage({\n config,\n language,\n}: {\n config: MaybePromise<SanitizedConfig>\n language: string\n}) {\n const payload = await getPayload({ config })\n const cookiePrefix = payload.config.cookiePrefix || 'payload'\n\n setResponseHeader(\n 'Set-Cookie',\n `${encodeURIComponent(`${cookiePrefix}-lng`)}=${encodeURIComponent(language)}; Path=/`,\n )\n}\n"],"names":["setResponseHeader","getPayload","switchLanguage","config","language","payload","cookiePrefix","encodeURIComponent"],"mappings":"AAEA,SAASA,iBAAiB,QAAQ,+BAA8B;AAChE,SAASC,UAAU,QAAQ,UAAS;AAEpC,OAAO,eAAeC,eAAe,EACnCC,MAAM,EACNC,QAAQ,EAIT;IACC,MAAMC,UAAU,MAAMJ,WAAW;QAAEE;IAAO;IAC1C,MAAMG,eAAeD,QAAQF,MAAM,CAACG,YAAY,IAAI;IAEpDN,kBACE,cACA,GAAGO,mBAAmB,GAAGD,aAAa,IAAI,CAAC,EAAE,CAAC,EAAEC,mBAAmBH,UAAU,QAAQ,CAAC;AAE1F"}
@@ -1,10 +0,0 @@
1
- import type { Theme } from '@payloadcms/ui';
2
- import type { SanitizedConfig } from 'payload';
3
- type GetRequestThemeArgs = {
4
- config: SanitizedConfig;
5
- cookies: Map<string, string>;
6
- headers: Headers;
7
- };
8
- export declare function getRequestTheme({ config, cookies, headers }: GetRequestThemeArgs): Theme;
9
- export {};
10
- //# sourceMappingURL=getRequestTheme.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getRequestTheme.d.ts","sourceRoot":"","sources":["../../src/utilities/getRequestTheme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAA;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,SAAS,CAAA;AAE9C,KAAK,mBAAmB,GAAG;IACzB,MAAM,EAAE,eAAe,CAAA;IACvB,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC5B,OAAO,EAAE,OAAO,CAAA;CACjB,CAAA;AAUD,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,mBAAmB,GAAG,KAAK,CAkBxF"}
@@ -1,25 +0,0 @@
1
- // Defined locally rather than imported from `@payloadcms/ui` (a `'use client'`
2
- // barrel) because its value exports resolve to non-serializable client
3
- // references in this adapter's RSC server context. `Theme` is a type-only
4
- // import and is safely erased at runtime.
5
- const defaultTheme = 'light';
6
- const acceptedThemes = [
7
- 'dark',
8
- 'light'
9
- ];
10
- export function getRequestTheme({ config, cookies, headers }) {
11
- if (config.admin.theme !== 'all' && acceptedThemes.includes(config.admin.theme)) {
12
- return config.admin.theme;
13
- }
14
- const themeCookie = cookies.get(`${config.cookiePrefix || 'payload'}-theme`);
15
- if (themeCookie && acceptedThemes.includes(themeCookie)) {
16
- return themeCookie;
17
- }
18
- const themeFromHeader = headers.get('Sec-CH-Prefers-Color-Scheme');
19
- if (themeFromHeader && acceptedThemes.includes(themeFromHeader)) {
20
- return themeFromHeader;
21
- }
22
- return defaultTheme;
23
- }
24
-
25
- //# sourceMappingURL=getRequestTheme.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/utilities/getRequestTheme.ts"],"sourcesContent":["import type { Theme } from '@payloadcms/ui'\nimport type { SanitizedConfig } from 'payload'\n\ntype GetRequestThemeArgs = {\n config: SanitizedConfig\n cookies: Map<string, string>\n headers: Headers\n}\n\n// Defined locally rather than imported from `@payloadcms/ui` (a `'use client'`\n// barrel) because its value exports resolve to non-serializable client\n// references in this adapter's RSC server context. `Theme` is a type-only\n// import and is safely erased at runtime.\nconst defaultTheme: Theme = 'light'\n\nconst acceptedThemes: Theme[] = ['dark', 'light']\n\nexport function getRequestTheme({ config, cookies, headers }: GetRequestThemeArgs): Theme {\n if (config.admin.theme !== 'all' && acceptedThemes.includes(config.admin.theme)) {\n return config.admin.theme\n }\n\n const themeCookie = cookies.get(`${config.cookiePrefix || 'payload'}-theme`)\n\n if (themeCookie && acceptedThemes.includes(themeCookie as Theme)) {\n return themeCookie as Theme\n }\n\n const themeFromHeader = headers.get('Sec-CH-Prefers-Color-Scheme') as Theme\n\n if (themeFromHeader && acceptedThemes.includes(themeFromHeader)) {\n return themeFromHeader\n }\n\n return defaultTheme\n}\n"],"names":["defaultTheme","acceptedThemes","getRequestTheme","config","cookies","headers","admin","theme","includes","themeCookie","get","cookiePrefix","themeFromHeader"],"mappings":"AASA,+EAA+E;AAC/E,uEAAuE;AACvE,0EAA0E;AAC1E,0CAA0C;AAC1C,MAAMA,eAAsB;AAE5B,MAAMC,iBAA0B;IAAC;IAAQ;CAAQ;AAEjD,OAAO,SAASC,gBAAgB,EAAEC,MAAM,EAAEC,OAAO,EAAEC,OAAO,EAAuB;IAC/E,IAAIF,OAAOG,KAAK,CAACC,KAAK,KAAK,SAASN,eAAeO,QAAQ,CAACL,OAAOG,KAAK,CAACC,KAAK,GAAG;QAC/E,OAAOJ,OAAOG,KAAK,CAACC,KAAK;IAC3B;IAEA,MAAME,cAAcL,QAAQM,GAAG,CAAC,GAAGP,OAAOQ,YAAY,IAAI,UAAU,MAAM,CAAC;IAE3E,IAAIF,eAAeR,eAAeO,QAAQ,CAACC,cAAuB;QAChE,OAAOA;IACT;IAEA,MAAMG,kBAAkBP,QAAQK,GAAG,CAAC;IAEpC,IAAIE,mBAAmBX,eAAeO,QAAQ,CAACI,kBAAkB;QAC/D,OAAOA;IACT;IAEA,OAAOZ;AACT"}
@@ -1,37 +0,0 @@
1
- /**
2
- * Vite-level configuration constants used by `payloadPlugin`. Kept separate so
3
- * `plugin.ts` stays focused on wiring.
4
- */
5
- /**
6
- * Server-only packages (Node-only or only ever used by the server bundle).
7
- * These are the Vite equivalent of Next.js's `serverExternalPackages`.
8
- */
9
- export declare const ssrExternalPackages: string[];
10
- /**
11
- * Payload packages whose source must be processed by Vite even on the server
12
- * (because they are workspace `.ts` files in dev). Server-only adapters
13
- * (`@payloadcms/db-*`, `@payloadcms/email-*`, `@payloadcms/next`, etc.) are
14
- * intentionally not included — those should stay external on the SSR side.
15
- */
16
- export declare const payloadNoExternalPatterns: Array<RegExp | string>;
17
- /**
18
- * The subset of `payloadNoExternalPatterns` that needs to participate in the
19
- * RSC environment. The RSC graph is narrower — plugins and storage adapters
20
- * don't run in RSC, only the admin UI surface does.
21
- */
22
- export declare const payloadRscNoExternalPatterns: Array<RegExp | string>;
23
- /**
24
- * Packages we know contain Node-only code or top-level side effects requiring
25
- * Node APIs. Excluding them from the client optimizer prevents Vite from
26
- * walking into their main entries and trying to bundle server-only imports
27
- * for the browser.
28
- */
29
- export declare const optimizeDepsExcludeDefaults: string[];
30
- /**
31
- * Transitive dependencies of `@payloadcms/ui` and `payload` that need to be
32
- * pre-bundled for the client. Vite's auto-discovery doesn't reliably pick
33
- * these up because their parent packages are in `optimizeDeps.exclude`, so we
34
- * list them explicitly using the `parent > child` syntax.
35
- */
36
- export declare const optimizeDepsIncludeDefaults: string[];
37
- //# sourceMappingURL=constants.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/vite/constants.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,EA0BvC,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAO5D,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAK/D,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,EAsB/C,CAAA;AAED;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,EAqC/C,CAAA"}
@@ -1,129 +0,0 @@
1
- /**
2
- * Vite-level configuration constants used by `payloadPlugin`. Kept separate so
3
- * `plugin.ts` stays focused on wiring.
4
- */ /**
5
- * Server-only packages (Node-only or only ever used by the server bundle).
6
- * These are the Vite equivalent of Next.js's `serverExternalPackages`.
7
- */ export const ssrExternalPackages = [
8
- 'ajv',
9
- 'fast-uri',
10
- 'drizzle-kit',
11
- 'drizzle-kit/api',
12
- 'drizzle-orm',
13
- 'sharp',
14
- 'libsql',
15
- 'require-in-the-middle',
16
- 'json-schema-to-typescript',
17
- 'pino',
18
- 'pino-pretty',
19
- 'graphql',
20
- 'mongodb',
21
- 'mongoose',
22
- 'better-sqlite3',
23
- 'pg',
24
- 'pg-native',
25
- 'nodemailer',
26
- 'aws4',
27
- 'pluralize',
28
- 'console-table-printer',
29
- '@azure/storage-blob',
30
- '@aws-sdk/client-s3',
31
- '@aws-sdk/s3-request-presigner',
32
- '@google-cloud/storage'
33
- ];
34
- /**
35
- * Payload packages whose source must be processed by Vite even on the server
36
- * (because they are workspace `.ts` files in dev). Server-only adapters
37
- * (`@payloadcms/db-*`, `@payloadcms/email-*`, `@payloadcms/next`, etc.) are
38
- * intentionally not included — those should stay external on the SSR side.
39
- */ export const payloadNoExternalPatterns = [
40
- '@payloadcms/ui',
41
- '@payloadcms/translations',
42
- '@payloadcms/tanstack-start',
43
- /^@payloadcms\/richtext-lexical/,
44
- /^@payloadcms\/plugin-/,
45
- /^@payloadcms\/storage-/
46
- ];
47
- /**
48
- * The subset of `payloadNoExternalPatterns` that needs to participate in the
49
- * RSC environment. The RSC graph is narrower — plugins and storage adapters
50
- * don't run in RSC, only the admin UI surface does.
51
- */ export const payloadRscNoExternalPatterns = [
52
- '@payloadcms/ui',
53
- '@payloadcms/translations',
54
- '@payloadcms/tanstack-start',
55
- /^@payloadcms\/richtext-lexical/
56
- ];
57
- /**
58
- * Packages we know contain Node-only code or top-level side effects requiring
59
- * Node APIs. Excluding them from the client optimizer prevents Vite from
60
- * walking into their main entries and trying to bundle server-only imports
61
- * for the browser.
62
- */ export const optimizeDepsExcludeDefaults = [
63
- 'sharp',
64
- '@payloadcms/ui',
65
- '@payloadcms/tanstack-start',
66
- 'payload',
67
- 'pino',
68
- 'pino-pretty',
69
- 'busboy',
70
- 'get-tsconfig',
71
- 'ws',
72
- 'croner',
73
- 'prompts',
74
- 'file-type',
75
- // Server-only SDKs used by `@payloadcms/storage-*` adapters. Vite
76
- // sometimes walks these from the main package entry while scanning
77
- // workspace deps, and the browser sub-bundles do not expose the
78
- // server-only APIs (e.g. `BlobSASPermissions`), which crashes the dev
79
- // server with a `MISSING_EXPORT` error before any test runs.
80
- '@azure/storage-blob',
81
- '@aws-sdk/client-s3',
82
- '@aws-sdk/s3-request-presigner',
83
- '@google-cloud/storage'
84
- ];
85
- /**
86
- * Transitive dependencies of `@payloadcms/ui` and `payload` that need to be
87
- * pre-bundled for the client. Vite's auto-discovery doesn't reliably pick
88
- * these up because their parent packages are in `optimizeDeps.exclude`, so we
89
- * list them explicitly using the `parent > child` syntax.
90
- */ export const optimizeDepsIncludeDefaults = [
91
- '@payloadcms/ui > sonner',
92
- '@payloadcms/ui > @faceless-ui/modal',
93
- '@payloadcms/ui > @faceless-ui/window-info',
94
- '@payloadcms/ui > @faceless-ui/scroll-info',
95
- '@payloadcms/ui > @dnd-kit/core',
96
- '@payloadcms/ui > @dnd-kit/sortable',
97
- '@payloadcms/ui > @dnd-kit/utilities',
98
- '@payloadcms/ui > react-datepicker',
99
- '@payloadcms/ui > react-select',
100
- '@payloadcms/ui > react-select/creatable',
101
- '@payloadcms/ui > react-image-crop',
102
- '@payloadcms/ui > @monaco-editor/react',
103
- '@payloadcms/ui > date-fns',
104
- '@payloadcms/ui > date-fns/transpose',
105
- '@payloadcms/ui > @date-fns/tz/date/mini',
106
- '@payloadcms/ui > uuid',
107
- '@payloadcms/ui > use-context-selector',
108
- '@payloadcms/ui > bson-objectid',
109
- '@payloadcms/ui > dequal',
110
- '@payloadcms/ui > object-to-formdata',
111
- '@payloadcms/ui > md5',
112
- 'payload > deepmerge',
113
- 'payload > pluralize',
114
- 'scheduler',
115
- // Transitive deps that Vite otherwise discovers *after* the initial crawl
116
- // (react-select pulls in @floating-ui at runtime; react-is is reached via
117
- // react-transition-group/prop-types; the default date-fns locale is loaded
118
- // through a dynamic `date-fns/locale/${key}` import). A late discovery forces
119
- // a full dep re-optimization mid-session, which 404s every in-flight
120
- // `.vite/deps/*` chunk ("Pre-transform error: file does not exist in the
121
- // optimize deps directory") and breaks the admin UI in CI cold starts.
122
- // Pre-bundling them keeps the first optimization pass complete.
123
- '@payloadcms/ui > react-select > @floating-ui/dom',
124
- '@payloadcms/ui > react-select > @floating-ui/dom > @floating-ui/core',
125
- '@payloadcms/ui > react-select > prop-types > react-is',
126
- '@payloadcms/ui > date-fns/locale/en-US'
127
- ];
128
-
129
- //# sourceMappingURL=constants.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/vite/constants.ts"],"sourcesContent":["/**\n * Vite-level configuration constants used by `payloadPlugin`. Kept separate so\n * `plugin.ts` stays focused on wiring.\n */\n\n/**\n * Server-only packages (Node-only or only ever used by the server bundle).\n * These are the Vite equivalent of Next.js's `serverExternalPackages`.\n */\nexport const ssrExternalPackages: string[] = [\n 'ajv',\n 'fast-uri',\n 'drizzle-kit',\n 'drizzle-kit/api',\n 'drizzle-orm',\n 'sharp',\n 'libsql',\n 'require-in-the-middle',\n 'json-schema-to-typescript',\n 'pino',\n 'pino-pretty',\n 'graphql',\n 'mongodb',\n 'mongoose',\n 'better-sqlite3',\n 'pg',\n 'pg-native',\n 'nodemailer',\n 'aws4',\n 'pluralize',\n 'console-table-printer',\n '@azure/storage-blob',\n '@aws-sdk/client-s3',\n '@aws-sdk/s3-request-presigner',\n '@google-cloud/storage',\n]\n\n/**\n * Payload packages whose source must be processed by Vite even on the server\n * (because they are workspace `.ts` files in dev). Server-only adapters\n * (`@payloadcms/db-*`, `@payloadcms/email-*`, `@payloadcms/next`, etc.) are\n * intentionally not included — those should stay external on the SSR side.\n */\nexport const payloadNoExternalPatterns: Array<RegExp | string> = [\n '@payloadcms/ui',\n '@payloadcms/translations',\n '@payloadcms/tanstack-start',\n /^@payloadcms\\/richtext-lexical/,\n /^@payloadcms\\/plugin-/,\n /^@payloadcms\\/storage-/,\n]\n\n/**\n * The subset of `payloadNoExternalPatterns` that needs to participate in the\n * RSC environment. The RSC graph is narrower — plugins and storage adapters\n * don't run in RSC, only the admin UI surface does.\n */\nexport const payloadRscNoExternalPatterns: Array<RegExp | string> = [\n '@payloadcms/ui',\n '@payloadcms/translations',\n '@payloadcms/tanstack-start',\n /^@payloadcms\\/richtext-lexical/,\n]\n\n/**\n * Packages we know contain Node-only code or top-level side effects requiring\n * Node APIs. Excluding them from the client optimizer prevents Vite from\n * walking into their main entries and trying to bundle server-only imports\n * for the browser.\n */\nexport const optimizeDepsExcludeDefaults: string[] = [\n 'sharp',\n '@payloadcms/ui',\n '@payloadcms/tanstack-start',\n 'payload',\n 'pino',\n 'pino-pretty',\n 'busboy',\n 'get-tsconfig',\n 'ws',\n 'croner',\n 'prompts',\n 'file-type',\n // Server-only SDKs used by `@payloadcms/storage-*` adapters. Vite\n // sometimes walks these from the main package entry while scanning\n // workspace deps, and the browser sub-bundles do not expose the\n // server-only APIs (e.g. `BlobSASPermissions`), which crashes the dev\n // server with a `MISSING_EXPORT` error before any test runs.\n '@azure/storage-blob',\n '@aws-sdk/client-s3',\n '@aws-sdk/s3-request-presigner',\n '@google-cloud/storage',\n]\n\n/**\n * Transitive dependencies of `@payloadcms/ui` and `payload` that need to be\n * pre-bundled for the client. Vite's auto-discovery doesn't reliably pick\n * these up because their parent packages are in `optimizeDeps.exclude`, so we\n * list them explicitly using the `parent > child` syntax.\n */\nexport const optimizeDepsIncludeDefaults: string[] = [\n '@payloadcms/ui > sonner',\n '@payloadcms/ui > @faceless-ui/modal',\n '@payloadcms/ui > @faceless-ui/window-info',\n '@payloadcms/ui > @faceless-ui/scroll-info',\n '@payloadcms/ui > @dnd-kit/core',\n '@payloadcms/ui > @dnd-kit/sortable',\n '@payloadcms/ui > @dnd-kit/utilities',\n '@payloadcms/ui > react-datepicker',\n '@payloadcms/ui > react-select',\n '@payloadcms/ui > react-select/creatable',\n '@payloadcms/ui > react-image-crop',\n '@payloadcms/ui > @monaco-editor/react',\n '@payloadcms/ui > date-fns',\n '@payloadcms/ui > date-fns/transpose',\n '@payloadcms/ui > @date-fns/tz/date/mini',\n '@payloadcms/ui > uuid',\n '@payloadcms/ui > use-context-selector',\n '@payloadcms/ui > bson-objectid',\n '@payloadcms/ui > dequal',\n '@payloadcms/ui > object-to-formdata',\n '@payloadcms/ui > md5',\n 'payload > deepmerge',\n 'payload > pluralize',\n 'scheduler',\n // Transitive deps that Vite otherwise discovers *after* the initial crawl\n // (react-select pulls in @floating-ui at runtime; react-is is reached via\n // react-transition-group/prop-types; the default date-fns locale is loaded\n // through a dynamic `date-fns/locale/${key}` import). A late discovery forces\n // a full dep re-optimization mid-session, which 404s every in-flight\n // `.vite/deps/*` chunk (\"Pre-transform error: file does not exist in the\n // optimize deps directory\") and breaks the admin UI in CI cold starts.\n // Pre-bundling them keeps the first optimization pass complete.\n '@payloadcms/ui > react-select > @floating-ui/dom',\n '@payloadcms/ui > react-select > @floating-ui/dom > @floating-ui/core',\n '@payloadcms/ui > react-select > prop-types > react-is',\n '@payloadcms/ui > date-fns/locale/en-US',\n]\n"],"names":["ssrExternalPackages","payloadNoExternalPatterns","payloadRscNoExternalPatterns","optimizeDepsExcludeDefaults","optimizeDepsIncludeDefaults"],"mappings":"AAAA;;;CAGC,GAED;;;CAGC,GACD,OAAO,MAAMA,sBAAgC;IAC3C;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD,CAAA;AAED;;;;;CAKC,GACD,OAAO,MAAMC,4BAAoD;IAC/D;IACA;IACA;IACA;IACA;IACA;CACD,CAAA;AAED;;;;CAIC,GACD,OAAO,MAAMC,+BAAuD;IAClE;IACA;IACA;IACA;CACD,CAAA;AAED;;;;;CAKC,GACD,OAAO,MAAMC,8BAAwC;IACnD;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA,kEAAkE;IAClE,mEAAmE;IACnE,gEAAgE;IAChE,sEAAsE;IACtE,6DAA6D;IAC7D;IACA;IACA;IACA;CACD,CAAA;AAED;;;;;CAKC,GACD,OAAO,MAAMC,8BAAwC;IACnD;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA,0EAA0E;IAC1E,0EAA0E;IAC1E,2EAA2E;IAC3E,8EAA8E;IAC9E,qEAAqE;IACrE,yEAAyE;IACzE,uEAAuE;IACvE,gEAAgE;IAChE;IACA;IACA;IACA;CACD,CAAA"}
@@ -1,38 +0,0 @@
1
- import type { PluginOption, UserConfigFnObject } from 'vite';
2
- export interface PayloadPluginOptions {
3
- /** Additional resolve aliases */
4
- additionalAliases?: Array<{
5
- find: RegExp | string;
6
- replacement: string;
7
- }>;
8
- /** Additional import protection ignoreImporters patterns */
9
- additionalIgnoreImporters?: RegExp[];
10
- /** Extra optimizeDeps.include entries */
11
- additionalOptimizeDepsInclude?: string[];
12
- /** Extra ssr.external entries */
13
- additionalSsrExternal?: string[];
14
- /** Path to the user's payload.config.ts (required) */
15
- payloadConfigPath: string;
16
- /** Extra Vite plugins to include */
17
- plugins?: PluginOption[];
18
- /** @vitejs/plugin-react instance — must be passed by consumer to ensure correct resolution */
19
- reactPlugin: PluginOption;
20
- /** TanStack router routes directory relative to srcDirectory. Defaults to 'app' */
21
- routesDirectory?: string;
22
- /** @vitejs/plugin-rsc instance — required for RSC support, must be passed by consumer */
23
- rscPlugin: PluginOption;
24
- /** TanStack source directory. Defaults to 'src' */
25
- srcDirectory?: string;
26
- /** tanstackStart from '@tanstack/react-start/plugin/vite' — must be passed by consumer to ensure correct resolution */
27
- tanstackStart: typeof import('@tanstack/react-start/plugin/vite').tanstackStart;
28
- }
29
- /**
30
- * Vite plugin for Payload + TanStack Start. The Vite-side counterpart to
31
- * `withPayload` for Next.js: it configures the Vite environment so the Payload
32
- * admin can run, then composes the TanStack Start plugin with two small
33
- * Payload-specific workarounds (dev HMR injection, SSR style stripping). Each
34
- * remaining workaround lives in its own file under `./plugins/` so it can be
35
- * deleted individually once the corresponding upstream fix lands.
36
- */
37
- export declare function payloadPlugin(options: PayloadPluginOptions): UserConfigFnObject;
38
- //# sourceMappingURL=plugin.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/vite/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,MAAM,CAAA;AAsB5D,MAAM,WAAW,oBAAoB;IACnC,iCAAiC;IACjC,iBAAiB,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACzE,4DAA4D;IAC5D,yBAAyB,CAAC,EAAE,MAAM,EAAE,CAAA;IACpC,yCAAyC;IACzC,6BAA6B,CAAC,EAAE,MAAM,EAAE,CAAA;IACxC,iCAAiC;IACjC,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAA;IAChC,sDAAsD;IACtD,iBAAiB,EAAE,MAAM,CAAA;IACzB,oCAAoC;IACpC,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,8FAA8F;IAC9F,WAAW,EAAE,YAAY,CAAA;IACzB,mFAAmF;IACnF,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,yFAAyF;IACzF,SAAS,EAAE,YAAY,CAAA;IACvB,mDAAmD;IACnD,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,uHAAuH;IACvH,aAAa,EAAE,cAAc,mCAAmC,EAAE,aAAa,CAAA;CAChF;AAED;;;;;;;GAOG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,kBAAkB,CAkI/E"}
@@ -1,182 +0,0 @@
1
- import path from 'node:path';
2
- import { optimizeDepsExcludeDefaults, optimizeDepsIncludeDefaults, payloadNoExternalPatterns, payloadRscNoExternalPatterns, ssrExternalPackages } from './constants.js';
3
- import { defaultImportProtectionIgnoreImporters, onImportProtectionViolation, serverOnlyClientSpecifiers } from './importProtection.js';
4
- import { clientModuleResolution } from './plugins/clientModuleResolution.js';
5
- import { payloadDevTransforms } from './plugins/devTransforms.js';
6
- import { reactDomServerInRsc } from './plugins/reactDomServerInRsc.js';
7
- import { ssrStripDistStyleImports } from './plugins/stripDistStyleImports.js';
8
- import { wrapCjsForClient } from './plugins/wrapCjsForClient.js';
9
- /**
10
- * Vite plugin for Payload + TanStack Start. The Vite-side counterpart to
11
- * `withPayload` for Next.js: it configures the Vite environment so the Payload
12
- * admin can run, then composes the TanStack Start plugin with two small
13
- * Payload-specific workarounds (dev HMR injection, SSR style stripping). Each
14
- * remaining workaround lives in its own file under `./plugins/` so it can be
15
- * deleted individually once the corresponding upstream fix lands.
16
- */ export function payloadPlugin(options) {
17
- const { additionalAliases = [], additionalIgnoreImporters = [], additionalOptimizeDepsInclude = [], additionalSsrExternal = [], payloadConfigPath, plugins: extraPlugins = [], reactPlugin, routesDirectory = 'app', rscPlugin, srcDirectory = 'src', tanstackStart } = options;
18
- process.env.PAYLOAD_FRAMEWORK_RSC_ENABLED = 'true';
19
- return (_env)=>({
20
- css: {
21
- preprocessorOptions: {
22
- scss: {
23
- silenceDeprecations: [
24
- 'import',
25
- 'global-builtin'
26
- ]
27
- }
28
- }
29
- },
30
- define: {
31
- global: 'globalThis',
32
- 'process.env.PAYLOAD_FRAMEWORK_RSC_ENABLED': JSON.stringify('true')
33
- },
34
- environments: {
35
- rsc: {
36
- resolve: {
37
- noExternal: payloadRscNoExternalPatterns
38
- }
39
- },
40
- ssr: {
41
- resolve: {
42
- noExternal: payloadNoExternalPatterns
43
- }
44
- }
45
- },
46
- optimizeDeps: {
47
- exclude: optimizeDepsExcludeDefaults,
48
- include: [
49
- ...optimizeDepsIncludeDefaults,
50
- ...additionalOptimizeDepsInclude
51
- ]
52
- },
53
- plugins: [
54
- clientModuleResolution(),
55
- wrapCjsForClient(),
56
- ssrStripDistStyleImports(),
57
- reactDomServerInRsc(),
58
- payloadDevTransforms(),
59
- rscPlugin,
60
- tanstackStart({
61
- importProtection: {
62
- client: {
63
- excludeFiles: [],
64
- specifiers: serverOnlyClientSpecifiers
65
- },
66
- ignoreImporters: [
67
- ...defaultImportProtectionIgnoreImporters,
68
- ...additionalIgnoreImporters
69
- ],
70
- include: [
71
- '**/*'
72
- ],
73
- mockAccess: 'warn',
74
- onViolation: onImportProtectionViolation,
75
- // Disable TanStack Start's default `**/*.client.*` file-based denial in
76
- // the SSR environment. Payload uses the `.client.tsx` filename suffix
77
- // for React Client Components (with a `'use client'` directive) that
78
- // MUST be server-rendered to HTML during SSR. The default rule would
79
- // otherwise replace those files with an `import-protection mock` Proxy
80
- // during SSR, which crashes React (TypeError: Cannot convert object to
81
- // primitive value) the moment React tries to format a warning that
82
- // mentions one of these components.
83
- server: {
84
- files: []
85
- }
86
- },
87
- // Disable TanStack Router's automatic per-route code-splitting.
88
- //
89
- // With splitting enabled each route's `component` is fetched lazily
90
- // via `?tsr-split=component` after the initial SSR HTML is streamed.
91
- // Until that lazy chunk lands the rendered admin tree has no client
92
- // React attached, so any button clicks (e.g. the
93
- // `#toggle-list-filters` chevron in `<ListControls />`) hit a static
94
- // DOM, the click is dropped, and once the chunk finally loads the
95
- // component re-mounts with its initial `useState` instead of the
96
- // toggled value. That single behaviour was the root cause of the
97
- // "page renders but nothing is interactive" tanstack-start E2E
98
- // failures (`#list-controls-where`, `[data-lexical-editor]`, etc.) -
99
- // playwright traces show "Download the React DevTools" landing
100
- // *after* the playwright click, confirming late hydration.
101
- //
102
- // We pass BOTH knobs because `tanstackStart`'s schema silently
103
- // strips the user-supplied `autoCodeSplitting` (its `tsrConfig`
104
- // does `configSchema.omit({ autoCodeSplitting: true, target: true
105
- // })`) and then leaves the value `undefined` — which is fine for
106
- // the conditional inside `unpluginRouterComposedFactory`, but the
107
- // TanStack Start vite plugin *unconditionally* installs the router
108
- // code-splitter via `tanStackRouterCodeSplitter(...)` regardless.
109
- // The only knob that survives all of that and is honoured by the
110
- // splitter is `router.codeSplittingOptions.defaultBehavior` — set
111
- // to an empty array, the splitter still walks each `createFileRoute`
112
- // file but produces no virtual `?tsr-split=...` modules, so every
113
- // route component ships in the initial bundle and hydration starts
114
- // immediately on first paint. We keep `autoCodeSplitting: false` as
115
- // a belt-and-braces signal in case the start plugin ever stops
116
- // dropping it.
117
- //
118
- // Eager-loading routes ships a slightly larger initial bundle but
119
- // makes the admin actually interactive on first paint.
120
- router: {
121
- autoCodeSplitting: false,
122
- codeSplittingOptions: {
123
- defaultBehavior: []
124
- },
125
- // Exclude only generated importMap files. Admin form saves are
126
- // dispatched via `runPayloadServerFn` (a TanStack Start
127
- // `createServerFn`) rather than a hand-rolled route, so there is
128
- // no longer an `api.server-function.ts` to special-case here.
129
- routeFileIgnorePattern: 'importMap\\.(?:js|server\\.ts)$',
130
- routesDirectory
131
- },
132
- rsc: {
133
- enabled: true
134
- },
135
- srcDirectory
136
- }),
137
- reactPlugin,
138
- ...extraPlugins
139
- ],
140
- resolve: {
141
- alias: [
142
- {
143
- find: '@payload-config',
144
- replacement: path.resolve(payloadConfigPath)
145
- },
146
- ...additionalAliases
147
- ],
148
- dedupe: [
149
- 'react',
150
- 'react-dom',
151
- 'scheduler',
152
- '@payloadcms/ui'
153
- ],
154
- extensions: [
155
- '.mjs',
156
- '.js',
157
- '.mts',
158
- '.ts',
159
- '.jsx',
160
- '.tsx',
161
- '.json'
162
- ],
163
- tsconfigPaths: true
164
- },
165
- server: {
166
- warmup: {
167
- clientFiles: [
168
- './src/importMap.js'
169
- ]
170
- }
171
- },
172
- ssr: {
173
- external: [
174
- ...ssrExternalPackages,
175
- ...additionalSsrExternal
176
- ],
177
- noExternal: payloadNoExternalPatterns
178
- }
179
- });
180
- }
181
-
182
- //# sourceMappingURL=plugin.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/vite/plugin.ts"],"sourcesContent":["import type { PluginOption, UserConfigFnObject } from 'vite'\n\nimport path from 'node:path'\n\nimport {\n optimizeDepsExcludeDefaults,\n optimizeDepsIncludeDefaults,\n payloadNoExternalPatterns,\n payloadRscNoExternalPatterns,\n ssrExternalPackages,\n} from './constants.js'\nimport {\n defaultImportProtectionIgnoreImporters,\n onImportProtectionViolation,\n serverOnlyClientSpecifiers,\n} from './importProtection.js'\nimport { clientModuleResolution } from './plugins/clientModuleResolution.js'\nimport { payloadDevTransforms } from './plugins/devTransforms.js'\nimport { reactDomServerInRsc } from './plugins/reactDomServerInRsc.js'\nimport { ssrStripDistStyleImports } from './plugins/stripDistStyleImports.js'\nimport { wrapCjsForClient } from './plugins/wrapCjsForClient.js'\n\nexport interface PayloadPluginOptions {\n /** Additional resolve aliases */\n additionalAliases?: Array<{ find: RegExp | string; replacement: string }>\n /** Additional import protection ignoreImporters patterns */\n additionalIgnoreImporters?: RegExp[]\n /** Extra optimizeDeps.include entries */\n additionalOptimizeDepsInclude?: string[]\n /** Extra ssr.external entries */\n additionalSsrExternal?: string[]\n /** Path to the user's payload.config.ts (required) */\n payloadConfigPath: string\n /** Extra Vite plugins to include */\n plugins?: PluginOption[]\n /** @vitejs/plugin-react instance — must be passed by consumer to ensure correct resolution */\n reactPlugin: PluginOption\n /** TanStack router routes directory relative to srcDirectory. Defaults to 'app' */\n routesDirectory?: string\n /** @vitejs/plugin-rsc instance — required for RSC support, must be passed by consumer */\n rscPlugin: PluginOption\n /** TanStack source directory. Defaults to 'src' */\n srcDirectory?: string\n /** tanstackStart from '@tanstack/react-start/plugin/vite' — must be passed by consumer to ensure correct resolution */\n tanstackStart: typeof import('@tanstack/react-start/plugin/vite').tanstackStart\n}\n\n/**\n * Vite plugin for Payload + TanStack Start. The Vite-side counterpart to\n * `withPayload` for Next.js: it configures the Vite environment so the Payload\n * admin can run, then composes the TanStack Start plugin with two small\n * Payload-specific workarounds (dev HMR injection, SSR style stripping). Each\n * remaining workaround lives in its own file under `./plugins/` so it can be\n * deleted individually once the corresponding upstream fix lands.\n */\nexport function payloadPlugin(options: PayloadPluginOptions): UserConfigFnObject {\n const {\n additionalAliases = [],\n additionalIgnoreImporters = [],\n additionalOptimizeDepsInclude = [],\n additionalSsrExternal = [],\n payloadConfigPath,\n plugins: extraPlugins = [],\n reactPlugin,\n routesDirectory = 'app',\n rscPlugin,\n srcDirectory = 'src',\n tanstackStart,\n } = options\n\n process.env.PAYLOAD_FRAMEWORK_RSC_ENABLED = 'true'\n\n return (_env) => ({\n css: {\n preprocessorOptions: {\n scss: {\n silenceDeprecations: ['import', 'global-builtin'],\n } as any,\n },\n },\n define: {\n global: 'globalThis',\n 'process.env.PAYLOAD_FRAMEWORK_RSC_ENABLED': JSON.stringify('true'),\n },\n environments: {\n rsc: { resolve: { noExternal: payloadRscNoExternalPatterns } },\n ssr: { resolve: { noExternal: payloadNoExternalPatterns } },\n } as any,\n optimizeDeps: {\n exclude: optimizeDepsExcludeDefaults,\n include: [...optimizeDepsIncludeDefaults, ...additionalOptimizeDepsInclude],\n },\n plugins: [\n clientModuleResolution(),\n wrapCjsForClient(),\n ssrStripDistStyleImports(),\n reactDomServerInRsc(),\n payloadDevTransforms(),\n rscPlugin,\n tanstackStart({\n importProtection: {\n client: { excludeFiles: [], specifiers: serverOnlyClientSpecifiers },\n ignoreImporters: [\n ...defaultImportProtectionIgnoreImporters,\n ...additionalIgnoreImporters,\n ],\n include: ['**/*'],\n mockAccess: 'warn',\n onViolation: onImportProtectionViolation,\n // Disable TanStack Start's default `**/*.client.*` file-based denial in\n // the SSR environment. Payload uses the `.client.tsx` filename suffix\n // for React Client Components (with a `'use client'` directive) that\n // MUST be server-rendered to HTML during SSR. The default rule would\n // otherwise replace those files with an `import-protection mock` Proxy\n // during SSR, which crashes React (TypeError: Cannot convert object to\n // primitive value) the moment React tries to format a warning that\n // mentions one of these components.\n server: { files: [] },\n },\n // Disable TanStack Router's automatic per-route code-splitting.\n //\n // With splitting enabled each route's `component` is fetched lazily\n // via `?tsr-split=component` after the initial SSR HTML is streamed.\n // Until that lazy chunk lands the rendered admin tree has no client\n // React attached, so any button clicks (e.g. the\n // `#toggle-list-filters` chevron in `<ListControls />`) hit a static\n // DOM, the click is dropped, and once the chunk finally loads the\n // component re-mounts with its initial `useState` instead of the\n // toggled value. That single behaviour was the root cause of the\n // \"page renders but nothing is interactive\" tanstack-start E2E\n // failures (`#list-controls-where`, `[data-lexical-editor]`, etc.) -\n // playwright traces show \"Download the React DevTools\" landing\n // *after* the playwright click, confirming late hydration.\n //\n // We pass BOTH knobs because `tanstackStart`'s schema silently\n // strips the user-supplied `autoCodeSplitting` (its `tsrConfig`\n // does `configSchema.omit({ autoCodeSplitting: true, target: true\n // })`) and then leaves the value `undefined` — which is fine for\n // the conditional inside `unpluginRouterComposedFactory`, but the\n // TanStack Start vite plugin *unconditionally* installs the router\n // code-splitter via `tanStackRouterCodeSplitter(...)` regardless.\n // The only knob that survives all of that and is honoured by the\n // splitter is `router.codeSplittingOptions.defaultBehavior` — set\n // to an empty array, the splitter still walks each `createFileRoute`\n // file but produces no virtual `?tsr-split=...` modules, so every\n // route component ships in the initial bundle and hydration starts\n // immediately on first paint. We keep `autoCodeSplitting: false` as\n // a belt-and-braces signal in case the start plugin ever stops\n // dropping it.\n //\n // Eager-loading routes ships a slightly larger initial bundle but\n // makes the admin actually interactive on first paint.\n router: {\n autoCodeSplitting: false,\n codeSplittingOptions: { defaultBehavior: [] },\n // Exclude only generated importMap files. Admin form saves are\n // dispatched via `runPayloadServerFn` (a TanStack Start\n // `createServerFn`) rather than a hand-rolled route, so there is\n // no longer an `api.server-function.ts` to special-case here.\n routeFileIgnorePattern: 'importMap\\\\.(?:js|server\\\\.ts)$',\n routesDirectory,\n } as any,\n rsc: { enabled: true },\n srcDirectory,\n }),\n reactPlugin,\n ...extraPlugins,\n ],\n resolve: {\n alias: [\n { find: '@payload-config', replacement: path.resolve(payloadConfigPath) },\n ...additionalAliases,\n ],\n dedupe: ['react', 'react-dom', 'scheduler', '@payloadcms/ui'],\n extensions: ['.mjs', '.js', '.mts', '.ts', '.jsx', '.tsx', '.json'],\n tsconfigPaths: true,\n } as any,\n server: {\n warmup: { clientFiles: ['./src/importMap.js'] },\n },\n ssr: {\n external: [...ssrExternalPackages, ...additionalSsrExternal],\n noExternal: payloadNoExternalPatterns,\n },\n })\n}\n"],"names":["path","optimizeDepsExcludeDefaults","optimizeDepsIncludeDefaults","payloadNoExternalPatterns","payloadRscNoExternalPatterns","ssrExternalPackages","defaultImportProtectionIgnoreImporters","onImportProtectionViolation","serverOnlyClientSpecifiers","clientModuleResolution","payloadDevTransforms","reactDomServerInRsc","ssrStripDistStyleImports","wrapCjsForClient","payloadPlugin","options","additionalAliases","additionalIgnoreImporters","additionalOptimizeDepsInclude","additionalSsrExternal","payloadConfigPath","plugins","extraPlugins","reactPlugin","routesDirectory","rscPlugin","srcDirectory","tanstackStart","process","env","PAYLOAD_FRAMEWORK_RSC_ENABLED","_env","css","preprocessorOptions","scss","silenceDeprecations","define","global","JSON","stringify","environments","rsc","resolve","noExternal","ssr","optimizeDeps","exclude","include","importProtection","client","excludeFiles","specifiers","ignoreImporters","mockAccess","onViolation","server","files","router","autoCodeSplitting","codeSplittingOptions","defaultBehavior","routeFileIgnorePattern","enabled","alias","find","replacement","dedupe","extensions","tsconfigPaths","warmup","clientFiles","external"],"mappings":"AAEA,OAAOA,UAAU,YAAW;AAE5B,SACEC,2BAA2B,EAC3BC,2BAA2B,EAC3BC,yBAAyB,EACzBC,4BAA4B,EAC5BC,mBAAmB,QACd,iBAAgB;AACvB,SACEC,sCAAsC,EACtCC,2BAA2B,EAC3BC,0BAA0B,QACrB,wBAAuB;AAC9B,SAASC,sBAAsB,QAAQ,sCAAqC;AAC5E,SAASC,oBAAoB,QAAQ,6BAA4B;AACjE,SAASC,mBAAmB,QAAQ,mCAAkC;AACtE,SAASC,wBAAwB,QAAQ,qCAAoC;AAC7E,SAASC,gBAAgB,QAAQ,gCAA+B;AA2BhE;;;;;;;CAOC,GACD,OAAO,SAASC,cAAcC,OAA6B;IACzD,MAAM,EACJC,oBAAoB,EAAE,EACtBC,4BAA4B,EAAE,EAC9BC,gCAAgC,EAAE,EAClCC,wBAAwB,EAAE,EAC1BC,iBAAiB,EACjBC,SAASC,eAAe,EAAE,EAC1BC,WAAW,EACXC,kBAAkB,KAAK,EACvBC,SAAS,EACTC,eAAe,KAAK,EACpBC,aAAa,EACd,GAAGZ;IAEJa,QAAQC,GAAG,CAACC,6BAA6B,GAAG;IAE5C,OAAO,CAACC,OAAU,CAAA;YAChBC,KAAK;gBACHC,qBAAqB;oBACnBC,MAAM;wBACJC,qBAAqB;4BAAC;4BAAU;yBAAiB;oBACnD;gBACF;YACF;YACAC,QAAQ;gBACNC,QAAQ;gBACR,6CAA6CC,KAAKC,SAAS,CAAC;YAC9D;YACAC,cAAc;gBACZC,KAAK;oBAAEC,SAAS;wBAAEC,YAAYvC;oBAA6B;gBAAE;gBAC7DwC,KAAK;oBAAEF,SAAS;wBAAEC,YAAYxC;oBAA0B;gBAAE;YAC5D;YACA0C,cAAc;gBACZC,SAAS7C;gBACT8C,SAAS;uBAAI7C;uBAAgCgB;iBAA8B;YAC7E;YACAG,SAAS;gBACPZ;gBACAI;gBACAD;gBACAD;gBACAD;gBACAe;gBACAE,cAAc;oBACZqB,kBAAkB;wBAChBC,QAAQ;4BAAEC,cAAc,EAAE;4BAAEC,YAAY3C;wBAA2B;wBACnE4C,iBAAiB;+BACZ9C;+BACAW;yBACJ;wBACD8B,SAAS;4BAAC;yBAAO;wBACjBM,YAAY;wBACZC,aAAa/C;wBACb,wEAAwE;wBACxE,sEAAsE;wBACtE,qEAAqE;wBACrE,qEAAqE;wBACrE,uEAAuE;wBACvE,uEAAuE;wBACvE,mEAAmE;wBACnE,oCAAoC;wBACpCgD,QAAQ;4BAAEC,OAAO,EAAE;wBAAC;oBACtB;oBACA,gEAAgE;oBAChE,EAAE;oBACF,oEAAoE;oBACpE,qEAAqE;oBACrE,oEAAoE;oBACpE,iDAAiD;oBACjD,qEAAqE;oBACrE,kEAAkE;oBAClE,iEAAiE;oBACjE,iEAAiE;oBACjE,+DAA+D;oBAC/D,qEAAqE;oBACrE,+DAA+D;oBAC/D,2DAA2D;oBAC3D,EAAE;oBACF,+DAA+D;oBAC/D,gEAAgE;oBAChE,kEAAkE;oBAClE,iEAAiE;oBACjE,kEAAkE;oBAClE,mEAAmE;oBACnE,kEAAkE;oBAClE,iEAAiE;oBACjE,kEAAkE;oBAClE,qEAAqE;oBACrE,kEAAkE;oBAClE,mEAAmE;oBACnE,oEAAoE;oBACpE,+DAA+D;oBAC/D,eAAe;oBACf,EAAE;oBACF,kEAAkE;oBAClE,uDAAuD;oBACvDC,QAAQ;wBACNC,mBAAmB;wBACnBC,sBAAsB;4BAAEC,iBAAiB,EAAE;wBAAC;wBAC5C,+DAA+D;wBAC/D,wDAAwD;wBACxD,iEAAiE;wBACjE,8DAA8D;wBAC9DC,wBAAwB;wBACxBrC;oBACF;oBACAiB,KAAK;wBAAEqB,SAAS;oBAAK;oBACrBpC;gBACF;gBACAH;mBACGD;aACJ;YACDoB,SAAS;gBACPqB,OAAO;oBACL;wBAAEC,MAAM;wBAAmBC,aAAajE,KAAK0C,OAAO,CAACtB;oBAAmB;uBACrEJ;iBACJ;gBACDkD,QAAQ;oBAAC;oBAAS;oBAAa;oBAAa;iBAAiB;gBAC7DC,YAAY;oBAAC;oBAAQ;oBAAO;oBAAQ;oBAAO;oBAAQ;oBAAQ;iBAAQ;gBACnEC,eAAe;YACjB;YACAb,QAAQ;gBACNc,QAAQ;oBAAEC,aAAa;wBAAC;qBAAqB;gBAAC;YAChD;YACA1B,KAAK;gBACH2B,UAAU;uBAAIlE;uBAAwBc;iBAAsB;gBAC5DwB,YAAYxC;YACd;QACF,CAAA;AACF"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"clientModuleResolution.d.ts","sourceRoot":"","sources":["../../../src/vite/plugins/clientModuleResolution.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,MAAM,CAAA;AAKxC;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,IAAI,YAAY,CA+ErD"}