@payloadcms/tanstack-start 4.0.0-internal.17c142b → 4.0.0-internal.1a2a79e
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/LICENSE.md +1 -1
- package/dist/adapters/handleServerFunctions.d.ts +3 -0
- package/dist/adapters/handleServerFunctions.d.ts.map +1 -0
- package/dist/adapters/handleServerFunctions.js +17 -0
- package/dist/adapters/handleServerFunctions.js.map +1 -0
- package/dist/adapters/layout/RootProviders/index.d.ts +9 -0
- package/dist/adapters/layout/RootProviders/index.d.ts.map +1 -0
- package/dist/adapters/layout/RootProviders/index.js +21 -0
- package/dist/adapters/layout/RootProviders/index.js.map +1 -0
- package/dist/adapters/layout/index.d.ts +69 -0
- package/dist/adapters/layout/index.d.ts.map +1 -0
- package/dist/adapters/layout/index.js +107 -0
- package/dist/adapters/layout/index.js.map +1 -0
- package/dist/adapters/layout/lazy.d.ts +7 -0
- package/dist/adapters/layout/lazy.d.ts.map +1 -0
- package/dist/adapters/layout/lazy.js +17 -0
- package/dist/adapters/layout/lazy.js.map +1 -0
- package/dist/adapters/layout/outlet.d.ts +4 -0
- package/dist/adapters/layout/outlet.d.ts.map +1 -0
- package/dist/adapters/layout/outlet.js +9 -0
- package/dist/adapters/layout/outlet.js.map +1 -0
- package/dist/adapters/layout/server.d.ts +23 -0
- package/dist/adapters/layout/server.d.ts.map +1 -0
- package/dist/adapters/layout/server.js +65 -0
- package/dist/adapters/layout/server.js.map +1 -0
- package/dist/{utilities/meta.d.ts → adapters/metadata.d.ts} +11 -1
- package/dist/adapters/metadata.d.ts.map +1 -0
- package/dist/{utilities/meta.js → adapters/metadata.js} +62 -2
- package/dist/adapters/metadata.js.map +1 -0
- package/dist/{elements/RouterAdapter/index.d.ts → adapters/router.d.ts} +1 -1
- package/dist/adapters/router.d.ts.map +1 -0
- package/dist/{elements/RouterAdapter/index.js → adapters/router.js} +49 -7
- package/dist/adapters/router.js.map +1 -0
- package/dist/{utilities/serverAdapter.server.d.ts → adapters/server.d.ts} +1 -1
- package/dist/adapters/server.d.ts.map +1 -0
- package/dist/{utilities/serverAdapter.server.js → adapters/server.js} +3 -30
- package/dist/adapters/server.js.map +1 -0
- package/dist/{routes/adminRoutes.d.ts → adapters/views/index.d.ts} +24 -22
- package/dist/adapters/views/index.d.ts.map +1 -0
- package/dist/adapters/views/index.js +101 -0
- package/dist/adapters/views/index.js.map +1 -0
- package/dist/adapters/views/lazy.d.ts +4 -0
- package/dist/adapters/views/lazy.d.ts.map +1 -0
- package/dist/adapters/views/lazy.js +44 -0
- package/dist/adapters/views/lazy.js.map +1 -0
- package/dist/{utilities/loadAdminPage.d.ts → adapters/views/server.d.ts} +12 -6
- package/dist/adapters/views/server.d.ts.map +1 -0
- package/dist/{utilities/loadAdminPage.js → adapters/views/server.js} +47 -86
- package/dist/adapters/views/server.js.map +1 -0
- package/dist/auth/login.d.ts +3 -16
- package/dist/auth/login.d.ts.map +1 -1
- package/dist/auth/login.js +6 -46
- package/dist/auth/login.js.map +1 -1
- package/dist/auth/logout.d.ts +2 -5
- package/dist/auth/logout.d.ts.map +1 -1
- package/dist/auth/logout.js +6 -47
- package/dist/auth/logout.js.map +1 -1
- package/dist/auth/refresh.d.ts +2 -4
- package/dist/auth/refresh.d.ts.map +1 -1
- package/dist/auth/refresh.js +6 -49
- package/dist/auth/refresh.js.map +1 -1
- package/dist/exports/client/layout.d.ts +2 -0
- package/dist/exports/client/layout.d.ts.map +1 -0
- package/dist/exports/client/layout.js +4 -0
- package/dist/exports/client/layout.js.map +1 -0
- package/dist/exports/client.d.ts +3 -7
- package/dist/exports/client.d.ts.map +1 -1
- package/dist/exports/client.js +3 -7
- package/dist/exports/client.js.map +1 -1
- package/dist/exports/layouts.d.ts +2 -5
- package/dist/exports/layouts.d.ts.map +1 -1
- package/dist/exports/layouts.js +1 -3
- package/dist/exports/layouts.js.map +1 -1
- package/dist/exports/routes.d.ts +2 -0
- package/dist/exports/routes.d.ts.map +1 -0
- package/dist/exports/routes.js +3 -0
- package/dist/exports/routes.js.map +1 -0
- package/dist/exports/rsc.browser.d.ts +4 -1
- package/dist/exports/rsc.browser.d.ts.map +1 -1
- package/dist/exports/rsc.browser.js +4 -1
- package/dist/exports/rsc.browser.js.map +1 -1
- package/dist/exports/rsc.d.ts +0 -1
- package/dist/exports/rsc.d.ts.map +1 -1
- package/dist/exports/rsc.js +0 -1
- package/dist/exports/rsc.js.map +1 -1
- package/dist/exports/server.d.ts +7 -12
- package/dist/exports/server.d.ts.map +1 -1
- package/dist/exports/server.js +7 -12
- package/dist/exports/server.js.map +1 -1
- package/dist/exports/shared.d.ts +2 -0
- package/dist/exports/shared.d.ts.map +1 -0
- package/dist/exports/shared.js +3 -0
- package/dist/exports/shared.js.map +1 -0
- package/dist/index.d.ts +1 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -5
- package/dist/index.js.map +1 -1
- package/dist/{utilities/graphqlHandler.server.d.ts → routes/graphql/handler.server.d.ts} +1 -3
- package/dist/routes/graphql/handler.server.d.ts.map +1 -0
- package/dist/{utilities/graphqlHandler.server.js → routes/graphql/handler.server.js} +9 -6
- package/dist/routes/graphql/handler.server.js.map +1 -0
- package/dist/routes/rest/handler.server.d.ts +11 -0
- package/dist/routes/rest/handler.server.d.ts.map +1 -0
- package/dist/routes/rest/handler.server.js +14 -0
- package/dist/routes/rest/handler.server.js.map +1 -0
- package/dist/routes/rest/index.d.ts +35 -0
- package/dist/routes/rest/index.d.ts.map +1 -0
- package/dist/routes/rest/index.js +44 -0
- package/dist/routes/rest/index.js.map +1 -0
- package/dist/rsc/CollectionCards.js +1 -1
- package/dist/rsc/CollectionCards.js.map +1 -1
- package/dist/utilities/devConfigReload.server.d.ts +2 -0
- package/dist/utilities/devConfigReload.server.d.ts.map +1 -0
- package/dist/utilities/devConfigReload.server.js +61 -0
- package/dist/utilities/devConfigReload.server.js.map +1 -0
- package/dist/utilities/devConfigReloadEvent.d.ts +9 -0
- package/dist/utilities/devConfigReloadEvent.d.ts.map +1 -0
- package/dist/utilities/devConfigReloadEvent.js +9 -0
- package/dist/utilities/devConfigReloadEvent.js.map +1 -0
- package/dist/utilities/getRequestI18n.server.d.ts +1 -1
- package/dist/utilities/getRequestI18n.server.js +1 -1
- package/dist/utilities/getRequestI18n.server.js.map +1 -1
- package/dist/utilities/initAdminContext.server.d.ts +9 -0
- package/dist/utilities/initAdminContext.server.d.ts.map +1 -0
- package/dist/utilities/initAdminContext.server.js +13 -0
- package/dist/utilities/initAdminContext.server.js.map +1 -0
- 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/serverFunctionClient.d.ts +2 -23
- package/dist/utilities/serverFunctionClient.d.ts.map +1 -1
- package/dist/utilities/serverFunctionClient.js +12 -101
- package/dist/utilities/serverFunctionClient.js.map +1 -1
- package/dist/withPayload/config/external.d.ts +34 -0
- package/dist/withPayload/config/external.d.ts.map +1 -0
- package/dist/withPayload/config/external.js +88 -0
- package/dist/withPayload/config/external.js.map +1 -0
- package/dist/withPayload/config/optimizeDeps.d.ts +25 -0
- package/dist/withPayload/config/optimizeDeps.d.ts.map +1 -0
- package/dist/{vite/constants.js → withPayload/config/optimizeDeps.js} +53 -70
- package/dist/withPayload/config/optimizeDeps.js.map +1 -0
- package/dist/withPayload/config/scss.d.ts +14 -0
- package/dist/withPayload/config/scss.d.ts.map +1 -0
- package/dist/withPayload/config/scss.js +28 -0
- package/dist/withPayload/config/scss.js.map +1 -0
- package/dist/withPayload/devConfigReload.d.ts +14 -0
- package/dist/withPayload/devConfigReload.d.ts.map +1 -0
- package/dist/withPayload/devConfigReload.js +84 -0
- package/dist/withPayload/devConfigReload.js.map +1 -0
- package/dist/withPayload/importProtection.d.ts.map +1 -0
- package/dist/{vite → withPayload}/importProtection.js +2 -2
- package/dist/withPayload/importProtection.js.map +1 -0
- package/dist/withPayload/index.d.ts +112 -0
- package/dist/withPayload/index.d.ts.map +1 -0
- package/dist/withPayload/index.js +308 -0
- package/dist/withPayload/index.js.map +1 -0
- package/dist/withPayload/workarounds/clientModuleResolution.d.ts.map +1 -0
- package/dist/withPayload/workarounds/clientModuleResolution.js.map +1 -0
- package/dist/withPayload/workarounds/devTransforms.d.ts.map +1 -0
- package/dist/{vite/plugins → withPayload/workarounds}/devTransforms.js +5 -0
- package/dist/withPayload/workarounds/devTransforms.js.map +1 -0
- package/dist/withPayload/workarounds/reactDomServerInRsc.d.ts.map +1 -0
- package/dist/withPayload/workarounds/reactDomServerInRsc.js.map +1 -0
- package/dist/withPayload/workarounds/stripDistStyleImports.d.ts.map +1 -0
- package/dist/{vite/plugins → withPayload/workarounds}/stripDistStyleImports.js +38 -5
- package/dist/withPayload/workarounds/stripDistStyleImports.js.map +1 -0
- package/dist/withPayload/workarounds/stubPrettierInClient.d.ts +13 -0
- package/dist/withPayload/workarounds/stubPrettierInClient.d.ts.map +1 -0
- package/dist/withPayload/workarounds/stubPrettierInClient.js +32 -0
- package/dist/withPayload/workarounds/stubPrettierInClient.js.map +1 -0
- package/dist/withPayload/workarounds/wrapCjsForClient.d.ts.map +1 -0
- package/dist/withPayload/workarounds/wrapCjsForClient.js.map +1 -0
- package/package.json +45 -34
- package/dist/@types/assets.d.js +0 -2
- package/dist/@types/assets.d.js.map +0 -1
- package/dist/elements/DocumentHeaderClient/index.d.ts +0 -16
- package/dist/elements/DocumentHeaderClient/index.d.ts.map +0 -1
- package/dist/elements/DocumentHeaderClient/index.js +0 -116
- package/dist/elements/DocumentHeaderClient/index.js.map +0 -1
- package/dist/elements/RenderComponent/index.d.ts +0 -10
- package/dist/elements/RenderComponent/index.d.ts.map +0 -1
- package/dist/elements/RenderComponent/index.js +0 -12
- package/dist/elements/RenderComponent/index.js.map +0 -1
- package/dist/elements/RouterAdapter/index.d.ts.map +0 -1
- package/dist/elements/RouterAdapter/index.js.map +0 -1
- package/dist/exports/vite.d.ts +0 -3
- package/dist/exports/vite.d.ts.map +0 -1
- package/dist/exports/vite.js +0 -3
- package/dist/exports/vite.js.map +0 -1
- package/dist/layouts/Root/getLayoutData.d.ts +0 -12
- package/dist/layouts/Root/getLayoutData.d.ts.map +0 -1
- package/dist/layouts/Root/getLayoutData.js +0 -91
- package/dist/layouts/Root/getLayoutData.js.map +0 -1
- package/dist/layouts/Root/index.d.ts +0 -32
- package/dist/layouts/Root/index.d.ts.map +0 -1
- package/dist/layouts/Root/index.js +0 -51
- package/dist/layouts/Root/index.js.map +0 -1
- package/dist/layouts/Root/withPayloadRoot.d.ts +0 -65
- package/dist/layouts/Root/withPayloadRoot.d.ts.map +0 -1
- package/dist/layouts/Root/withPayloadRoot.js +0 -92
- package/dist/layouts/Root/withPayloadRoot.js.map +0 -1
- package/dist/node/cssLoader.d.mts +0 -3
- package/dist/node/cssLoader.d.mts.map +0 -1
- package/dist/node/cssLoader.js +0 -70
- package/dist/node/cssLoader.js.map +0 -1
- package/dist/node/cssLoader.mjs +0 -75
- package/dist/node/registerCssLoader.d.mts +0 -2
- package/dist/node/registerCssLoader.d.mts.map +0 -1
- package/dist/node/registerCssLoader.js +0 -10
- package/dist/node/registerCssLoader.js.map +0 -1
- package/dist/node/registerCssLoader.mjs +0 -10
- package/dist/routes/adminRoutes.d.ts.map +0 -1
- package/dist/routes/adminRoutes.js +0 -97
- package/dist/routes/adminRoutes.js.map +0 -1
- package/dist/routes/apiRoute.d.ts +0 -33
- package/dist/routes/apiRoute.d.ts.map +0 -1
- package/dist/routes/apiRoute.js +0 -27
- package/dist/routes/apiRoute.js.map +0 -1
- package/dist/routes/layoutRoute.d.ts +0 -23
- package/dist/routes/layoutRoute.d.ts.map +0 -1
- package/dist/routes/layoutRoute.js +0 -51
- package/dist/routes/layoutRoute.js.map +0 -1
- package/dist/rsc/renderPayloadRSC.d.ts +0 -6
- package/dist/rsc/renderPayloadRSC.d.ts.map +0 -1
- package/dist/rsc/renderPayloadRSC.js +0 -6
- package/dist/rsc/renderPayloadRSC.js.map +0 -1
- package/dist/utilities/devReloadStrategy.d.ts +0 -10
- package/dist/utilities/devReloadStrategy.d.ts.map +0 -1
- package/dist/utilities/devReloadStrategy.js +0 -27
- package/dist/utilities/devReloadStrategy.js.map +0 -1
- package/dist/utilities/getExistingAuthToken.d.ts +0 -7
- package/dist/utilities/getExistingAuthToken.d.ts.map +0 -1
- package/dist/utilities/getExistingAuthToken.js +0 -18
- package/dist/utilities/getExistingAuthToken.js.map +0 -1
- package/dist/utilities/getPreferences.d.ts +0 -10
- package/dist/utilities/getPreferences.d.ts.map +0 -1
- package/dist/utilities/getPreferences.js +0 -33
- package/dist/utilities/getPreferences.js.map +0 -1
- package/dist/utilities/getRequestLocale.d.ts +0 -7
- package/dist/utilities/getRequestLocale.d.ts.map +0 -1
- package/dist/utilities/getRequestLocale.js +0 -20
- package/dist/utilities/getRequestLocale.js.map +0 -1
- package/dist/utilities/getRequestTheme.d.ts +0 -10
- package/dist/utilities/getRequestTheme.d.ts.map +0 -1
- package/dist/utilities/getRequestTheme.js +0 -25
- package/dist/utilities/getRequestTheme.js.map +0 -1
- package/dist/utilities/graphqlHandler.server.d.ts.map +0 -1
- package/dist/utilities/graphqlHandler.server.js.map +0 -1
- package/dist/utilities/handleAPIRoute.d.ts +0 -11
- package/dist/utilities/handleAPIRoute.d.ts.map +0 -1
- package/dist/utilities/handleAPIRoute.js +0 -17
- package/dist/utilities/handleAPIRoute.js.map +0 -1
- package/dist/utilities/handleServerFunctions.d.ts +0 -20
- package/dist/utilities/handleServerFunctions.d.ts.map +0 -1
- package/dist/utilities/handleServerFunctions.js +0 -60
- package/dist/utilities/handleServerFunctions.js.map +0 -1
- package/dist/utilities/importMap.server.d.ts +0 -9
- package/dist/utilities/importMap.server.d.ts.map +0 -1
- package/dist/utilities/importMap.server.js +0 -12
- package/dist/utilities/importMap.server.js.map +0 -1
- package/dist/utilities/initReq.server.d.ts +0 -19
- package/dist/utilities/initReq.server.d.ts.map +0 -1
- package/dist/utilities/initReq.server.js +0 -87
- package/dist/utilities/initReq.server.js.map +0 -1
- package/dist/utilities/loadAdminPage.d.ts.map +0 -1
- package/dist/utilities/loadAdminPage.js.map +0 -1
- package/dist/utilities/loadLayoutData.d.ts +0 -15
- package/dist/utilities/loadLayoutData.d.ts.map +0 -1
- package/dist/utilities/loadLayoutData.js +0 -23
- package/dist/utilities/loadLayoutData.js.map +0 -1
- package/dist/utilities/meta.d.ts.map +0 -1
- package/dist/utilities/meta.js.map +0 -1
- package/dist/utilities/serializeForRsc.d.ts +0 -26
- package/dist/utilities/serializeForRsc.d.ts.map +0 -1
- package/dist/utilities/serializeForRsc.js +0 -122
- package/dist/utilities/serializeForRsc.js.map +0 -1
- package/dist/utilities/serverAdapter.server.d.ts.map +0 -1
- package/dist/utilities/serverAdapter.server.js.map +0 -1
- package/dist/utilities/serverFunctionHandlers.d.ts +0 -18
- package/dist/utilities/serverFunctionHandlers.d.ts.map +0 -1
- package/dist/utilities/serverFunctionHandlers.js +0 -17
- package/dist/utilities/serverFunctionHandlers.js.map +0 -1
- package/dist/utilities/setPayloadAuthCookie.d.ts +0 -9
- package/dist/utilities/setPayloadAuthCookie.d.ts.map +0 -1
- package/dist/utilities/setPayloadAuthCookie.js +0 -31
- package/dist/utilities/setPayloadAuthCookie.js.map +0 -1
- package/dist/utilities/toSerializable.d.ts +0 -2
- package/dist/utilities/toSerializable.d.ts.map +0 -1
- package/dist/utilities/toSerializable.js +0 -111
- package/dist/utilities/toSerializable.js.map +0 -1
- package/dist/vite/constants.d.ts +0 -42
- package/dist/vite/constants.d.ts.map +0 -1
- package/dist/vite/constants.js.map +0 -1
- package/dist/vite/importProtection.d.ts.map +0 -1
- package/dist/vite/importProtection.js.map +0 -1
- package/dist/vite/plugin.d.ts +0 -38
- package/dist/vite/plugin.d.ts.map +0 -1
- package/dist/vite/plugin.js +0 -179
- package/dist/vite/plugin.js.map +0 -1
- package/dist/vite/plugins/clientModuleResolution.d.ts.map +0 -1
- package/dist/vite/plugins/clientModuleResolution.js.map +0 -1
- package/dist/vite/plugins/devTransforms.d.ts.map +0 -1
- package/dist/vite/plugins/devTransforms.js.map +0 -1
- package/dist/vite/plugins/reactDomServerInRsc.d.ts.map +0 -1
- package/dist/vite/plugins/reactDomServerInRsc.js.map +0 -1
- package/dist/vite/plugins/stripDistStyleImports.d.ts.map +0 -1
- package/dist/vite/plugins/stripDistStyleImports.js.map +0 -1
- package/dist/vite/plugins/wrapCjsForClient.d.ts.map +0 -1
- package/dist/vite/plugins/wrapCjsForClient.js.map +0 -1
- /package/dist/{vite → withPayload}/importProtection.d.ts +0 -0
- /package/dist/{vite/plugins → withPayload/workarounds}/clientModuleResolution.d.ts +0 -0
- /package/dist/{vite/plugins → withPayload/workarounds}/clientModuleResolution.js +0 -0
- /package/dist/{vite/plugins → withPayload/workarounds}/devTransforms.d.ts +0 -0
- /package/dist/{vite/plugins → withPayload/workarounds}/reactDomServerInRsc.d.ts +0 -0
- /package/dist/{vite/plugins → withPayload/workarounds}/reactDomServerInRsc.js +0 -0
- /package/dist/{vite/plugins → withPayload/workarounds}/stripDistStyleImports.d.ts +0 -0
- /package/dist/{vite/plugins → withPayload/workarounds}/wrapCjsForClient.d.ts +0 -0
- /package/dist/{vite/plugins → withPayload/workarounds}/wrapCjsForClient.js +0 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { getRequest } from '@tanstack/react-start/server';
|
|
2
|
+
import { initAdminContext as initPayloadAdminContext } from 'payload/internal';
|
|
3
|
+
// Registers the dev reload strategy before `initPayloadAdminContext` can build an instance.
|
|
4
|
+
// Side-effect only, and a no-op outside of dev serve.
|
|
5
|
+
import './devConfigReload.server.js';
|
|
6
|
+
import { tanstackServerAdapter } from '../adapters/server.js';
|
|
7
|
+
export const initAdminContext = ({ serverAdapter = tanstackServerAdapter, ...args })=>initPayloadAdminContext({
|
|
8
|
+
...args,
|
|
9
|
+
requestURL: getRequest().url,
|
|
10
|
+
serverAdapter
|
|
11
|
+
});
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=initAdminContext.server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utilities/initAdminContext.server.ts"],"sourcesContent":["import type { ServerAdapter } from 'payload'\nimport type { InitAdminContextArgs } from 'payload/internal'\n\nimport { getRequest } from '@tanstack/react-start/server'\nimport { initAdminContext as initPayloadAdminContext } from 'payload/internal'\n\n// Registers the dev reload strategy before `initPayloadAdminContext` can build an instance.\n// Side-effect only, and a no-op outside of dev serve.\nimport './devConfigReload.server.js'\nimport { tanstackServerAdapter } from '../adapters/server.js'\n\ntype TanStackInitAdminContextArgs = {\n serverAdapter?: ServerAdapter\n} & Omit<InitAdminContextArgs, 'cache' | 'requestURL' | 'serverAdapter'>\n\nexport const initAdminContext = ({\n serverAdapter = tanstackServerAdapter,\n ...args\n}: TanStackInitAdminContextArgs) =>\n initPayloadAdminContext({\n ...args,\n requestURL: getRequest().url,\n serverAdapter,\n })\n"],"names":["getRequest","initAdminContext","initPayloadAdminContext","tanstackServerAdapter","serverAdapter","args","requestURL","url"],"mappings":"AAGA,SAASA,UAAU,QAAQ,+BAA8B;AACzD,SAASC,oBAAoBC,uBAAuB,QAAQ,mBAAkB;AAE9E,4FAA4F;AAC5F,sDAAsD;AACtD,OAAO,8BAA6B;AACpC,SAASC,qBAAqB,QAAQ,wBAAuB;AAM7D,OAAO,MAAMF,mBAAmB,CAAC,EAC/BG,gBAAgBD,qBAAqB,EACrC,GAAGE,MAC0B,GAC7BH,wBAAwB;QACtB,GAAGG,IAAI;QACPC,YAAYN,aAAaO,GAAG;QAC5BH;IACF,GAAE"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as qs from 'qs-esm';
|
|
2
|
+
/**
|
|
3
|
+
* `parseSearch` for TanStack Router's `createRouter`, required for Payload's
|
|
4
|
+
* admin UI. Pair with {@link payloadStringifySearch}.
|
|
5
|
+
*
|
|
6
|
+
* Payload serializes query state (notably the list-view `where` filter) with
|
|
7
|
+
* `qs` bracket notation — e.g. `?where[or][0][and][0][x][equals]=y`. TanStack
|
|
8
|
+
* Router's default serializer treats each bracketed string as a flat key and
|
|
9
|
+
* JSON-encodes values, so it never round-trips Payload's nested query: every
|
|
10
|
+
* navigation re-encodes the already-encoded value, exponentially nesting it
|
|
11
|
+
* (`[true,"[true,\"[true…"]`) until the filter is unusable. Parsing and
|
|
12
|
+
* stringifying with `qs` (same options as `payload`/`@payloadcms/ui`) keeps
|
|
13
|
+
* the URL idempotent and the nested `where` intact across navigations.
|
|
14
|
+
*
|
|
15
|
+
* This is a router-global serializer: it applies to every route, not just
|
|
16
|
+
* `/admin`. On your own routes, search values arrive as strings (qs does no
|
|
17
|
+
* JSON type-coercion), so coerce in `validateSearch` (e.g. `Number(...)`) where
|
|
18
|
+
* you need numbers or booleans.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* import { createRouter } from '@tanstack/react-router'
|
|
23
|
+
* import { payloadParseSearch, payloadStringifySearch } from '@payloadcms/tanstack-start/shared'
|
|
24
|
+
*
|
|
25
|
+
* export function getRouter() {
|
|
26
|
+
* return createRouter({
|
|
27
|
+
* parseSearch: payloadParseSearch,
|
|
28
|
+
* routeTree,
|
|
29
|
+
* stringifySearch: payloadStringifySearch,
|
|
30
|
+
* })
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
export declare const payloadParseSearch: (searchStr: string) => qs.ParsedQs;
|
|
35
|
+
/**
|
|
36
|
+
* `stringifySearch` for TanStack Router's `createRouter`, required for Payload's
|
|
37
|
+
* admin UI. Pair with {@link payloadParseSearch}; see it for the full rationale.
|
|
38
|
+
*/
|
|
39
|
+
export declare const payloadStringifySearch: (search: Record<string, unknown>) => string;
|
|
40
|
+
//# sourceMappingURL=routerSearch.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routerSearch.d.ts","sourceRoot":"","sources":["../../src/utilities/routerSearch.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,QAAQ,CAAA;AAE5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,eAAO,MAAM,kBAAkB,cAAe,MAAM,gBACS,CAAA;AAE7D;;;GAGG;AACH,eAAO,MAAM,sBAAsB,WAAY,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,WAGrE,CAAA"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as qs from 'qs-esm';
|
|
2
|
+
/**
|
|
3
|
+
* `parseSearch` for TanStack Router's `createRouter`, required for Payload's
|
|
4
|
+
* admin UI. Pair with {@link payloadStringifySearch}.
|
|
5
|
+
*
|
|
6
|
+
* Payload serializes query state (notably the list-view `where` filter) with
|
|
7
|
+
* `qs` bracket notation — e.g. `?where[or][0][and][0][x][equals]=y`. TanStack
|
|
8
|
+
* Router's default serializer treats each bracketed string as a flat key and
|
|
9
|
+
* JSON-encodes values, so it never round-trips Payload's nested query: every
|
|
10
|
+
* navigation re-encodes the already-encoded value, exponentially nesting it
|
|
11
|
+
* (`[true,"[true,\"[true…"]`) until the filter is unusable. Parsing and
|
|
12
|
+
* stringifying with `qs` (same options as `payload`/`@payloadcms/ui`) keeps
|
|
13
|
+
* the URL idempotent and the nested `where` intact across navigations.
|
|
14
|
+
*
|
|
15
|
+
* This is a router-global serializer: it applies to every route, not just
|
|
16
|
+
* `/admin`. On your own routes, search values arrive as strings (qs does no
|
|
17
|
+
* JSON type-coercion), so coerce in `validateSearch` (e.g. `Number(...)`) where
|
|
18
|
+
* you need numbers or booleans.
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* ```ts
|
|
22
|
+
* import { createRouter } from '@tanstack/react-router'
|
|
23
|
+
* import { payloadParseSearch, payloadStringifySearch } from '@payloadcms/tanstack-start/shared'
|
|
24
|
+
*
|
|
25
|
+
* export function getRouter() {
|
|
26
|
+
* return createRouter({
|
|
27
|
+
* parseSearch: payloadParseSearch,
|
|
28
|
+
* routeTree,
|
|
29
|
+
* stringifySearch: payloadStringifySearch,
|
|
30
|
+
* })
|
|
31
|
+
* }
|
|
32
|
+
* ```
|
|
33
|
+
*/ export const payloadParseSearch = (searchStr)=>qs.parse(searchStr, {
|
|
34
|
+
depth: 10,
|
|
35
|
+
ignoreQueryPrefix: true
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* `stringifySearch` for TanStack Router's `createRouter`, required for Payload's
|
|
39
|
+
* admin UI. Pair with {@link payloadParseSearch}; see it for the full rationale.
|
|
40
|
+
*/ export const payloadStringifySearch = (search)=>{
|
|
41
|
+
const searchStr = qs.stringify(search);
|
|
42
|
+
return searchStr ? `?${searchStr}` : '';
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
//# sourceMappingURL=routerSearch.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/utilities/routerSearch.ts"],"sourcesContent":["import * as qs from 'qs-esm'\n\n/**\n * `parseSearch` for TanStack Router's `createRouter`, required for Payload's\n * admin UI. Pair with {@link payloadStringifySearch}.\n *\n * Payload serializes query state (notably the list-view `where` filter) with\n * `qs` bracket notation — e.g. `?where[or][0][and][0][x][equals]=y`. TanStack\n * Router's default serializer treats each bracketed string as a flat key and\n * JSON-encodes values, so it never round-trips Payload's nested query: every\n * navigation re-encodes the already-encoded value, exponentially nesting it\n * (`[true,\"[true,\\\"[true…\"]`) until the filter is unusable. Parsing and\n * stringifying with `qs` (same options as `payload`/`@payloadcms/ui`) keeps\n * the URL idempotent and the nested `where` intact across navigations.\n *\n * This is a router-global serializer: it applies to every route, not just\n * `/admin`. On your own routes, search values arrive as strings (qs does no\n * JSON type-coercion), so coerce in `validateSearch` (e.g. `Number(...)`) where\n * you need numbers or booleans.\n *\n * @example\n * ```ts\n * import { createRouter } from '@tanstack/react-router'\n * import { payloadParseSearch, payloadStringifySearch } from '@payloadcms/tanstack-start/shared'\n *\n * export function getRouter() {\n * return createRouter({\n * parseSearch: payloadParseSearch,\n * routeTree,\n * stringifySearch: payloadStringifySearch,\n * })\n * }\n * ```\n */\nexport const payloadParseSearch = (searchStr: string) =>\n qs.parse(searchStr, { depth: 10, ignoreQueryPrefix: true })\n\n/**\n * `stringifySearch` for TanStack Router's `createRouter`, required for Payload's\n * admin UI. Pair with {@link payloadParseSearch}; see it for the full rationale.\n */\nexport const payloadStringifySearch = (search: Record<string, unknown>) => {\n const searchStr = qs.stringify(search)\n return searchStr ? `?${searchStr}` : ''\n}\n"],"names":["qs","payloadParseSearch","searchStr","parse","depth","ignoreQueryPrefix","payloadStringifySearch","search","stringify"],"mappings":"AAAA,YAAYA,QAAQ,SAAQ;AAE5B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+BC,GACD,OAAO,MAAMC,qBAAqB,CAACC,YACjCF,GAAGG,KAAK,CAACD,WAAW;QAAEE,OAAO;QAAIC,mBAAmB;IAAK,GAAE;AAE7D;;;CAGC,GACD,OAAO,MAAMC,yBAAyB,CAACC;IACrC,MAAML,YAAYF,GAAGQ,SAAS,CAACD;IAC/B,OAAOL,YAAY,CAAC,CAAC,EAAEA,WAAW,GAAG;AACvC,EAAC"}
|
|
@@ -1,29 +1,8 @@
|
|
|
1
1
|
import type { ServerFunctionClient, ServerFunctionClientArgs } from 'payload';
|
|
2
|
-
/**
|
|
3
|
-
* Builds the client-side `ServerFunctionClient` wired into
|
|
4
|
-
* `RootProvider.serverFunction`, given the app's `createServerFn`-based
|
|
5
|
-
* dispatcher (`runServerFn`).
|
|
6
|
-
*
|
|
7
|
-
* Strips functions / symbols / RegExps / React elements from the args before
|
|
8
|
-
* dispatching: the previous `fetch + JSON.stringify` pipeline silently dropped
|
|
9
|
-
* those, but TanStack Start's seroval-based wire format errors instead. We
|
|
10
|
-
* mirror the relaxed behaviour so existing callers (e.g. `getFormState` in
|
|
11
|
-
* `ServerFunctionsProvider`) that may pass the live form state — which can
|
|
12
|
-
* carry stray functions — keep working without each call site sanitising.
|
|
13
|
-
*
|
|
14
|
-
* Delegates to `runServerFn`, so the response (including any RSC handles for
|
|
15
|
-
* server-rendered custom components) is decoded by TanStack Start back into
|
|
16
|
-
* renderable React nodes on the client.
|
|
17
|
-
*/
|
|
2
|
+
/** Builds the admin dispatcher with native Flight response decoding. */
|
|
18
3
|
export declare function createServerFunctionClient({ runServerFn, }: {
|
|
19
4
|
runServerFn: (input: {
|
|
20
5
|
data: ServerFunctionClientArgs;
|
|
21
|
-
}) => Promise<
|
|
6
|
+
}) => Promise<Response>;
|
|
22
7
|
}): ServerFunctionClient;
|
|
23
|
-
/**
|
|
24
|
-
* Recursively removes values TanStack Start's seroval wire format cannot
|
|
25
|
-
* serialize (functions, symbols, RegExps, React elements, cyclic refs) and
|
|
26
|
-
* normalizes `Date` subclasses to plain `Date`.
|
|
27
|
-
*/
|
|
28
|
-
export declare function stripUnserializable(value: unknown, cache?: WeakMap<object, unknown>, ancestors?: WeakSet<object>): unknown;
|
|
29
8
|
//# sourceMappingURL=serverFunctionClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverFunctionClient.d.ts","sourceRoot":"","sources":["../../src/utilities/serverFunctionClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAE7E
|
|
1
|
+
{"version":3,"file":"serverFunctionClient.d.ts","sourceRoot":"","sources":["../../src/utilities/serverFunctionClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAA;AAE7E,wEAAwE;AACxE,wBAAgB,0BAA0B,CAAC,EACzC,WAAW,GACZ,EAAE;IACD,WAAW,EAAE,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,wBAAwB,CAAA;KAAE,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAA;CAC9E,GAAG,oBAAoB,CAoBvB"}
|
|
@@ -1,109 +1,20 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Builds the client-side `ServerFunctionClient` wired into
|
|
3
|
-
* `RootProvider.serverFunction`, given the app's `createServerFn`-based
|
|
4
|
-
* dispatcher (`runServerFn`).
|
|
5
|
-
*
|
|
6
|
-
* Strips functions / symbols / RegExps / React elements from the args before
|
|
7
|
-
* dispatching: the previous `fetch + JSON.stringify` pipeline silently dropped
|
|
8
|
-
* those, but TanStack Start's seroval-based wire format errors instead. We
|
|
9
|
-
* mirror the relaxed behaviour so existing callers (e.g. `getFormState` in
|
|
10
|
-
* `ServerFunctionsProvider`) that may pass the live form state — which can
|
|
11
|
-
* carry stray functions — keep working without each call site sanitising.
|
|
12
|
-
*
|
|
13
|
-
* Delegates to `runServerFn`, so the response (including any RSC handles for
|
|
14
|
-
* server-rendered custom components) is decoded by TanStack Start back into
|
|
15
|
-
* renderable React nodes on the client.
|
|
16
|
-
*/ export function createServerFunctionClient({ runServerFn }) {
|
|
1
|
+
/** Builds the admin dispatcher with native Flight response decoding. */ export function createServerFunctionClient({ runServerFn }) {
|
|
17
2
|
return async (args)=>{
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
data: safeArgs
|
|
3
|
+
const response = await runServerFn({
|
|
4
|
+
data: args
|
|
21
5
|
});
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Recursively removes values TanStack Start's seroval wire format cannot
|
|
26
|
-
* serialize (functions, symbols, RegExps, React elements, cyclic refs) and
|
|
27
|
-
* normalizes `Date` subclasses to plain `Date`.
|
|
28
|
-
*/ export function stripUnserializable(value, cache = new WeakMap(), ancestors = new WeakSet()) {
|
|
29
|
-
if (value === null || value === undefined) {
|
|
30
|
-
return value;
|
|
31
|
-
}
|
|
32
|
-
const t = typeof value;
|
|
33
|
-
if (t === 'function' || t === 'symbol') {
|
|
34
|
-
return undefined;
|
|
35
|
-
}
|
|
36
|
-
if (t !== 'object') {
|
|
37
|
-
return value;
|
|
38
|
-
}
|
|
39
|
-
const obj = value;
|
|
40
|
-
if (typeof obj.$$typeof === 'symbol') {
|
|
41
|
-
return undefined;
|
|
42
|
-
}
|
|
43
|
-
if (ancestors.has(obj)) {
|
|
44
|
-
return undefined;
|
|
45
|
-
}
|
|
46
|
-
if (cache.has(obj)) {
|
|
47
|
-
return cache.get(obj);
|
|
48
|
-
}
|
|
49
|
-
if (obj instanceof Date) {
|
|
50
|
-
// Normalize to a plain `Date`. Subclasses (e.g. `@date-fns/tz`'s `TZDate`,
|
|
51
|
-
// used by the schedule-publish drawer) are `instanceof Date` but have a
|
|
52
|
-
// different `constructor`, which TanStack Start's seroval serializer
|
|
53
|
-
// rejects with "The value [object Date] ... cannot be parsed/serialized".
|
|
54
|
-
return new Date(obj.getTime());
|
|
55
|
-
}
|
|
56
|
-
if (obj instanceof RegExp) {
|
|
57
|
-
return undefined;
|
|
58
|
-
}
|
|
59
|
-
ancestors.add(obj);
|
|
60
|
-
if (obj instanceof Map) {
|
|
61
|
-
const cleaned = new Map();
|
|
62
|
-
cache.set(obj, cleaned);
|
|
63
|
-
for (const [k, v] of obj){
|
|
64
|
-
const cv = stripUnserializable(v, cache, ancestors);
|
|
65
|
-
if (cv !== undefined) {
|
|
66
|
-
cleaned.set(k, cv);
|
|
67
|
-
}
|
|
6
|
+
if (!response.ok) {
|
|
7
|
+
throw new Error(`Payload server function failed with status ${response.status}`);
|
|
68
8
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
if (obj instanceof Set) {
|
|
73
|
-
const cleaned = new Set();
|
|
74
|
-
cache.set(obj, cleaned);
|
|
75
|
-
for (const v of obj){
|
|
76
|
-
const cv = stripUnserializable(v, cache, ancestors);
|
|
77
|
-
if (cv !== undefined) {
|
|
78
|
-
cleaned.add(cv);
|
|
79
|
-
}
|
|
9
|
+
if (response.headers.get('content-type')?.split(';')[0]?.trim() !== 'text/x-component') {
|
|
10
|
+
throw new Error('Expected a React Flight response from the Payload server function');
|
|
80
11
|
}
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
84
|
-
if (Array.isArray(obj)) {
|
|
85
|
-
const arr = [];
|
|
86
|
-
cache.set(obj, arr);
|
|
87
|
-
for (const item of obj){
|
|
88
|
-
arr.push(stripUnserializable(item, cache, ancestors));
|
|
12
|
+
if (!response.body) {
|
|
13
|
+
throw new Error('The Payload server function returned an empty Flight response');
|
|
89
14
|
}
|
|
90
|
-
|
|
91
|
-
return
|
|
92
|
-
}
|
|
93
|
-
if (ArrayBuffer.isView(obj)) {
|
|
94
|
-
ancestors.delete(obj);
|
|
95
|
-
return obj;
|
|
96
|
-
}
|
|
97
|
-
const result = {};
|
|
98
|
-
cache.set(obj, result);
|
|
99
|
-
for (const key of Object.keys(obj)){
|
|
100
|
-
const v = stripUnserializable(obj[key], cache, ancestors);
|
|
101
|
-
if (v !== undefined) {
|
|
102
|
-
result[key] = v;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
ancestors.delete(obj);
|
|
106
|
-
return result;
|
|
15
|
+
const { createFromReadableStream } = await import('@tanstack/react-start/rsc');
|
|
16
|
+
return await createFromReadableStream(response.body);
|
|
17
|
+
};
|
|
107
18
|
}
|
|
108
19
|
|
|
109
20
|
//# sourceMappingURL=serverFunctionClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/utilities/serverFunctionClient.ts"],"sourcesContent":["import type { ServerFunctionClient, ServerFunctionClientArgs } from 'payload'\n\n
|
|
1
|
+
{"version":3,"sources":["../../src/utilities/serverFunctionClient.ts"],"sourcesContent":["import type { ServerFunctionClient, ServerFunctionClientArgs } from 'payload'\n\n/** Builds the admin dispatcher with native Flight response decoding. */\nexport function createServerFunctionClient({\n runServerFn,\n}: {\n runServerFn: (input: { data: ServerFunctionClientArgs }) => Promise<Response>\n}): ServerFunctionClient {\n return (async (args: ServerFunctionClientArgs) => {\n const response = await runServerFn({ data: args })\n\n if (!response.ok) {\n throw new Error(`Payload server function failed with status ${response.status}`)\n }\n\n if (response.headers.get('content-type')?.split(';')[0]?.trim() !== 'text/x-component') {\n throw new Error('Expected a React Flight response from the Payload server function')\n }\n\n if (!response.body) {\n throw new Error('The Payload server function returned an empty Flight response')\n }\n\n const { createFromReadableStream } = await import('@tanstack/react-start/rsc')\n\n return await createFromReadableStream(response.body)\n }) as ServerFunctionClient\n}\n"],"names":["createServerFunctionClient","runServerFn","args","response","data","ok","Error","status","headers","get","split","trim","body","createFromReadableStream"],"mappings":"AAEA,sEAAsE,GACtE,OAAO,SAASA,2BAA2B,EACzCC,WAAW,EAGZ;IACC,OAAQ,OAAOC;QACb,MAAMC,WAAW,MAAMF,YAAY;YAAEG,MAAMF;QAAK;QAEhD,IAAI,CAACC,SAASE,EAAE,EAAE;YAChB,MAAM,IAAIC,MAAM,CAAC,2CAA2C,EAAEH,SAASI,MAAM,EAAE;QACjF;QAEA,IAAIJ,SAASK,OAAO,CAACC,GAAG,CAAC,iBAAiBC,MAAM,IAAI,CAAC,EAAE,EAAEC,WAAW,oBAAoB;YACtF,MAAM,IAAIL,MAAM;QAClB;QAEA,IAAI,CAACH,SAASS,IAAI,EAAE;YAClB,MAAM,IAAIN,MAAM;QAClB;QAEA,MAAM,EAAEO,wBAAwB,EAAE,GAAG,MAAM,MAAM,CAAC;QAElD,OAAO,MAAMA,yBAAyBV,SAASS,IAAI;IACrD;AACF"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Packages externalized during dev serve (`ssr.external`). Node's loader resolves
|
|
3
|
+
* their CJS/UMD directly; letting Vite's dev SSR transform touch them can break
|
|
4
|
+
* fragile UMD wrappers (e.g. `pluralize`, whose `this`-based global assignment
|
|
5
|
+
* throws when transformed rather than required).
|
|
6
|
+
*
|
|
7
|
+
* Safe here whoever declared the entry: Node resolves from the importing package,
|
|
8
|
+
* so pnpm's isolated layout never applies. The build is stricter — see
|
|
9
|
+
* {@link buildBundledPackages}.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ssrExternalPackages: string[];
|
|
12
|
+
/**
|
|
13
|
+
* Entries of {@link ssrExternalPackages} that must bundle in the production build.
|
|
14
|
+
*
|
|
15
|
+
* Externalizing only works for specifiers resolvable from the project root. These
|
|
16
|
+
* are leaf deps of Payload packages, so under pnpm they live in `.pnpm/…` and a bare
|
|
17
|
+
* specifier in a root-resolved chunk is invisible — `ERR_MODULE_NOT_FOUND` at
|
|
18
|
+
* runtime, or a build-time resolve failure under Nitro's re-bundle pass.
|
|
19
|
+
*
|
|
20
|
+
* `pluralize` also needs forcing back via `noExternal` (see `withPayload`); the
|
|
21
|
+
* storage leaves don't, since their adapters are already `noExternal`.
|
|
22
|
+
*/
|
|
23
|
+
export declare const buildBundledPackages: string[];
|
|
24
|
+
/** Server-only package boundaries loaded directly by Node in development and production. */
|
|
25
|
+
export declare const serverExternalPackages: string[];
|
|
26
|
+
/** Additional installed packages that can bypass Vite's development server transforms. */
|
|
27
|
+
export declare const devExternalPackages: string[];
|
|
28
|
+
/**
|
|
29
|
+
* Externalizes package boundaries so packages resolve their own transitive dependencies under pnpm.
|
|
30
|
+
* Leaves that must bundle in production are excluded; see {@link buildBundledPackages}.
|
|
31
|
+
*/
|
|
32
|
+
export declare const buildExternalPackages: string[];
|
|
33
|
+
export declare const payloadNoExternalPatterns: Array<RegExp | string>;
|
|
34
|
+
//# sourceMappingURL=external.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external.d.ts","sourceRoot":"","sources":["../../../src/withPayload/config/external.ts"],"names":[],"mappings":"AAKA;;;;;;;;;GASG;AACH,eAAO,MAAM,mBAAmB,EAAE,MAAM,EAwBvC,CAAA;AAED;;;;;;;;;;GAUG;AACH,eAAO,MAAM,oBAAoB,EAAE,MAAM,EAOxC,CAAA;AAED,4FAA4F;AAC5F,eAAO,MAAM,sBAAsB,EAAE,MAAM,EAS1C,CAAA;AAED,0FAA0F;AAC1F,eAAO,MAAM,mBAAmB,EAAE,MAAM,EAOvC,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,MAAM,EAGzC,CAAA;AAED,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,MAAM,GAAG,MAAM,CAO5D,CAAA"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { devServerExternalPackages as devServerExternalPayloadPackages, serverExternalPackages as serverExternalPayloadPackages } from 'payload/build-config';
|
|
2
|
+
/**
|
|
3
|
+
* Packages externalized during dev serve (`ssr.external`). Node's loader resolves
|
|
4
|
+
* their CJS/UMD directly; letting Vite's dev SSR transform touch them can break
|
|
5
|
+
* fragile UMD wrappers (e.g. `pluralize`, whose `this`-based global assignment
|
|
6
|
+
* throws when transformed rather than required).
|
|
7
|
+
*
|
|
8
|
+
* Safe here whoever declared the entry: Node resolves from the importing package,
|
|
9
|
+
* so pnpm's isolated layout never applies. The build is stricter — see
|
|
10
|
+
* {@link buildBundledPackages}.
|
|
11
|
+
*/ export const ssrExternalPackages = [
|
|
12
|
+
'zod',
|
|
13
|
+
'fast-uri',
|
|
14
|
+
...serverExternalPayloadPackages,
|
|
15
|
+
'drizzle-orm',
|
|
16
|
+
'pino-pretty',
|
|
17
|
+
'nodemailer',
|
|
18
|
+
'aws4',
|
|
19
|
+
'pluralize',
|
|
20
|
+
'console-table-printer',
|
|
21
|
+
'@azure/storage-blob',
|
|
22
|
+
'@aws-sdk/client-s3',
|
|
23
|
+
'@aws-sdk/s3-request-presigner',
|
|
24
|
+
'@google-cloud/storage',
|
|
25
|
+
// Database drivers + their lazily-required companions, one group per adapter.
|
|
26
|
+
// Postgres (`@payloadcms/db-postgres`, `@payloadcms/db-vercel-postgres`)
|
|
27
|
+
'pg',
|
|
28
|
+
'pg-native',
|
|
29
|
+
'pg-cloudflare',
|
|
30
|
+
// SQLite (`@payloadcms/db-sqlite`)
|
|
31
|
+
'better-sqlite3',
|
|
32
|
+
// Mongo (`@payloadcms/db-mongodb`)
|
|
33
|
+
'mongodb',
|
|
34
|
+
'mongoose'
|
|
35
|
+
];
|
|
36
|
+
/**
|
|
37
|
+
* Entries of {@link ssrExternalPackages} that must bundle in the production build.
|
|
38
|
+
*
|
|
39
|
+
* Externalizing only works for specifiers resolvable from the project root. These
|
|
40
|
+
* are leaf deps of Payload packages, so under pnpm they live in `.pnpm/…` and a bare
|
|
41
|
+
* specifier in a root-resolved chunk is invisible — `ERR_MODULE_NOT_FOUND` at
|
|
42
|
+
* runtime, or a build-time resolve failure under Nitro's re-bundle pass.
|
|
43
|
+
*
|
|
44
|
+
* `pluralize` also needs forcing back via `noExternal` (see `withPayload`); the
|
|
45
|
+
* storage leaves don't, since their adapters are already `noExternal`.
|
|
46
|
+
*/ export const buildBundledPackages = [
|
|
47
|
+
'pluralize',
|
|
48
|
+
// Leaf deps of the `@payloadcms/storage-*` adapters.
|
|
49
|
+
'@aws-sdk/client-s3',
|
|
50
|
+
'@aws-sdk/s3-request-presigner',
|
|
51
|
+
'@azure/storage-blob',
|
|
52
|
+
'@google-cloud/storage'
|
|
53
|
+
];
|
|
54
|
+
/** Server-only package boundaries loaded directly by Node in development and production. */ export const serverExternalPackages = [
|
|
55
|
+
'payload',
|
|
56
|
+
'payload/node',
|
|
57
|
+
'@payloadcms/drizzle',
|
|
58
|
+
'@payloadcms/db-mongodb',
|
|
59
|
+
'@payloadcms/db-postgres',
|
|
60
|
+
'@payloadcms/db-vercel-postgres',
|
|
61
|
+
'@payloadcms/db-sqlite',
|
|
62
|
+
'@payloadcms/db-d1-sqlite'
|
|
63
|
+
];
|
|
64
|
+
/** Additional installed packages that can bypass Vite's development server transforms. */ export const devExternalPackages = [
|
|
65
|
+
...new Set([
|
|
66
|
+
// Vite otherwise transforms date-fns' full module graph during SSR.
|
|
67
|
+
'date-fns',
|
|
68
|
+
...devServerExternalPayloadPackages,
|
|
69
|
+
...serverExternalPackages
|
|
70
|
+
])
|
|
71
|
+
];
|
|
72
|
+
/**
|
|
73
|
+
* Externalizes package boundaries so packages resolve their own transitive dependencies under pnpm.
|
|
74
|
+
* Leaves that must bundle in production are excluded; see {@link buildBundledPackages}.
|
|
75
|
+
*/ export const buildExternalPackages = [
|
|
76
|
+
...serverExternalPackages,
|
|
77
|
+
...ssrExternalPackages.filter((pkg)=>!buildBundledPackages.includes(pkg))
|
|
78
|
+
];
|
|
79
|
+
export const payloadNoExternalPatterns = [
|
|
80
|
+
'@payloadcms/ui',
|
|
81
|
+
'@payloadcms/translations',
|
|
82
|
+
'@payloadcms/tanstack-start',
|
|
83
|
+
/^@payloadcms\/richtext-lexical/,
|
|
84
|
+
/^@payloadcms\/plugin-/,
|
|
85
|
+
/^@payloadcms\/storage-/
|
|
86
|
+
];
|
|
87
|
+
|
|
88
|
+
//# sourceMappingURL=external.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/withPayload/config/external.ts"],"sourcesContent":["import {\n devServerExternalPackages as devServerExternalPayloadPackages,\n serverExternalPackages as serverExternalPayloadPackages,\n} from 'payload/build-config'\n\n/**\n * Packages externalized during dev serve (`ssr.external`). Node's loader resolves\n * their CJS/UMD directly; letting Vite's dev SSR transform touch them can break\n * fragile UMD wrappers (e.g. `pluralize`, whose `this`-based global assignment\n * throws when transformed rather than required).\n *\n * Safe here whoever declared the entry: Node resolves from the importing package,\n * so pnpm's isolated layout never applies. The build is stricter — see\n * {@link buildBundledPackages}.\n */\nexport const ssrExternalPackages: string[] = [\n 'zod',\n 'fast-uri',\n ...serverExternalPayloadPackages,\n 'drizzle-orm',\n 'pino-pretty',\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 // Database drivers + their lazily-required companions, one group per adapter.\n // Postgres (`@payloadcms/db-postgres`, `@payloadcms/db-vercel-postgres`)\n 'pg',\n 'pg-native',\n 'pg-cloudflare',\n // SQLite (`@payloadcms/db-sqlite`)\n 'better-sqlite3',\n // Mongo (`@payloadcms/db-mongodb`)\n 'mongodb',\n 'mongoose',\n]\n\n/**\n * Entries of {@link ssrExternalPackages} that must bundle in the production build.\n *\n * Externalizing only works for specifiers resolvable from the project root. These\n * are leaf deps of Payload packages, so under pnpm they live in `.pnpm/…` and a bare\n * specifier in a root-resolved chunk is invisible — `ERR_MODULE_NOT_FOUND` at\n * runtime, or a build-time resolve failure under Nitro's re-bundle pass.\n *\n * `pluralize` also needs forcing back via `noExternal` (see `withPayload`); the\n * storage leaves don't, since their adapters are already `noExternal`.\n */\nexport const buildBundledPackages: string[] = [\n 'pluralize',\n // Leaf deps of the `@payloadcms/storage-*` adapters.\n '@aws-sdk/client-s3',\n '@aws-sdk/s3-request-presigner',\n '@azure/storage-blob',\n '@google-cloud/storage',\n]\n\n/** Server-only package boundaries loaded directly by Node in development and production. */\nexport const serverExternalPackages: string[] = [\n 'payload',\n 'payload/node',\n '@payloadcms/drizzle',\n '@payloadcms/db-mongodb',\n '@payloadcms/db-postgres',\n '@payloadcms/db-vercel-postgres',\n '@payloadcms/db-sqlite',\n '@payloadcms/db-d1-sqlite',\n]\n\n/** Additional installed packages that can bypass Vite's development server transforms. */\nexport const devExternalPackages: string[] = [\n ...new Set([\n // Vite otherwise transforms date-fns' full module graph during SSR.\n 'date-fns',\n ...devServerExternalPayloadPackages,\n ...serverExternalPackages,\n ]),\n]\n\n/**\n * Externalizes package boundaries so packages resolve their own transitive dependencies under pnpm.\n * Leaves that must bundle in production are excluded; see {@link buildBundledPackages}.\n */\nexport const buildExternalPackages: string[] = [\n ...serverExternalPackages,\n ...ssrExternalPackages.filter((pkg) => !buildBundledPackages.includes(pkg)),\n]\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"],"names":["devServerExternalPackages","devServerExternalPayloadPackages","serverExternalPackages","serverExternalPayloadPackages","ssrExternalPackages","buildBundledPackages","devExternalPackages","Set","buildExternalPackages","filter","pkg","includes","payloadNoExternalPatterns"],"mappings":"AAAA,SACEA,6BAA6BC,gCAAgC,EAC7DC,0BAA0BC,6BAA6B,QAClD,uBAAsB;AAE7B;;;;;;;;;CASC,GACD,OAAO,MAAMC,sBAAgC;IAC3C;IACA;OACGD;IACH;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA;IACA,8EAA8E;IAC9E,yEAAyE;IACzE;IACA;IACA;IACA,mCAAmC;IACnC;IACA,mCAAmC;IACnC;IACA;CACD,CAAA;AAED;;;;;;;;;;CAUC,GACD,OAAO,MAAME,uBAAiC;IAC5C;IACA,qDAAqD;IACrD;IACA;IACA;IACA;CACD,CAAA;AAED,0FAA0F,GAC1F,OAAO,MAAMH,yBAAmC;IAC9C;IACA;IACA;IACA;IACA;IACA;IACA;IACA;CACD,CAAA;AAED,wFAAwF,GACxF,OAAO,MAAMI,sBAAgC;OACxC,IAAIC,IAAI;QACT,oEAAoE;QACpE;WACGN;WACAC;KACJ;CACF,CAAA;AAED;;;CAGC,GACD,OAAO,MAAMM,wBAAkC;OAC1CN;OACAE,oBAAoBK,MAAM,CAAC,CAACC,MAAQ,CAACL,qBAAqBM,QAAQ,CAACD;CACvE,CAAA;AAED,OAAO,MAAME,4BAAoD;IAC/D;IACA;IACA;IACA;IACA;IACA;CACD,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client dep-optimizer config used by `withPayload`. Kept separate from the
|
|
3
|
+
* SSR/RSC externalization config (`./external.ts`) so each concern stays small.
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Packages we know contain Node-only code or top-level side effects requiring
|
|
7
|
+
* Node APIs. Excluding them from the client optimizer prevents Vite from
|
|
8
|
+
* walking into their main entries and trying to bundle server-only imports
|
|
9
|
+
* for the browser.
|
|
10
|
+
*/
|
|
11
|
+
export declare const optimizeDepsExcludeDefaults: string[];
|
|
12
|
+
/**
|
|
13
|
+
* Transitive dependencies of `@payloadcms/ui` and `payload` that need to be
|
|
14
|
+
* pre-bundled for the client. Vite's auto-discovery doesn't reliably pick
|
|
15
|
+
* these up because their parent packages are in `optimizeDeps.exclude`, so we
|
|
16
|
+
* list them explicitly using the `parent > child` syntax.
|
|
17
|
+
*
|
|
18
|
+
* Each entry below fixes a specific late-discovery re-optimization: without it,
|
|
19
|
+
* Vite discovers the dep *after* its initial crawl, forcing a full dep
|
|
20
|
+
* re-optimization mid-session that 404s in-flight `.vite/deps/*` chunks and
|
|
21
|
+
* remounts the admin (dropping client state). This is why the list can't simply
|
|
22
|
+
* be deleted — it is the "complete first pass" for the admin's dep graph.
|
|
23
|
+
*/
|
|
24
|
+
export declare const optimizeDepsIncludeDefaults: string[];
|
|
25
|
+
//# sourceMappingURL=optimizeDeps.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optimizeDeps.d.ts","sourceRoot":"","sources":["../../../src/withPayload/config/optimizeDeps.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,EA0D/C,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,2BAA2B,EAAE,MAAM,EA+E/C,CAAA"}
|
|
@@ -1,67 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
2
|
+
* Client dep-optimizer config used by `withPayload`. Kept separate from the
|
|
3
|
+
* SSR/RSC externalization config (`./external.ts`) so each concern stays small.
|
|
4
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. Plugins and storage adapters must be included: they register
|
|
50
|
-
* custom providers/components (e.g. `plugin-multi-tenant`'s `'use client'`
|
|
51
|
-
* `TenantSelectionProvider`) that render in the RSC graph via
|
|
52
|
-
* `RenderServerComponent`. If the package stays external to RSC, `plugin-rsc`
|
|
53
|
-
* never transforms its `'use client'` modules into client references, so the
|
|
54
|
-
* component executes server-side and crashes on the first hook
|
|
55
|
-
* (`Cannot read properties of null (reading 'useState')`).
|
|
56
|
-
*/ export const payloadRscNoExternalPatterns = [
|
|
57
|
-
'@payloadcms/ui',
|
|
58
|
-
'@payloadcms/translations',
|
|
59
|
-
'@payloadcms/tanstack-start',
|
|
60
|
-
/^@payloadcms\/richtext-lexical/,
|
|
61
|
-
/^@payloadcms\/plugin-/,
|
|
62
|
-
/^@payloadcms\/storage-/
|
|
63
|
-
];
|
|
64
|
-
/**
|
|
65
5
|
* Packages we know contain Node-only code or top-level side effects requiring
|
|
66
6
|
* Node APIs. Excluding them from the client optimizer prevents Vite from
|
|
67
7
|
* walking into their main entries and trying to bundle server-only imports
|
|
@@ -85,15 +25,57 @@
|
|
|
85
25
|
// server-only APIs (e.g. `BlobSASPermissions`), which crashes the dev
|
|
86
26
|
// server with a `MISSING_EXPORT` error before any test runs.
|
|
87
27
|
'@azure/storage-blob',
|
|
28
|
+
// Preserve RSC client boundaries on storage admin upload handlers.
|
|
29
|
+
'@payloadcms/storage-azure',
|
|
30
|
+
'@payloadcms/storage-r2',
|
|
31
|
+
'@payloadcms/storage-vercel-blob',
|
|
88
32
|
'@aws-sdk/client-s3',
|
|
89
33
|
'@aws-sdk/s3-request-presigner',
|
|
90
|
-
'@google-cloud/storage'
|
|
34
|
+
'@google-cloud/storage',
|
|
35
|
+
// Packages whose admin component barrel re-exports `'use client'` modules
|
|
36
|
+
// without carrying the directive itself. Pre-bundling one puts those modules
|
|
37
|
+
// in the optimized dep chunk *and* in the `rsc` environment as client
|
|
38
|
+
// references, which `@vitejs/plugin-rsc` warns about ("client component
|
|
39
|
+
// dependency is inconsistently optimized") once per component. Barrels that
|
|
40
|
+
// start with `'use client'` (e.g. `richtext-lexical`, `plugin-stripe`) don't
|
|
41
|
+
// warn and stay pre-bundled. Only shows up in published installs; workspace
|
|
42
|
+
// source is never pre-bundled.
|
|
43
|
+
'@payloadcms/plugin-cloud-storage',
|
|
44
|
+
'@payloadcms/plugin-ecommerce',
|
|
45
|
+
'@payloadcms/plugin-form-builder',
|
|
46
|
+
'@payloadcms/plugin-import-export',
|
|
47
|
+
'@payloadcms/plugin-multi-tenant',
|
|
48
|
+
'@payloadcms/plugin-search',
|
|
49
|
+
'@payloadcms/plugin-sentry',
|
|
50
|
+
'@payloadcms/plugin-seo',
|
|
51
|
+
// Database adapters and their drivers. The client scan reaches them through the
|
|
52
|
+
// Payload config (it follows server functions' `import('@payload-config')`
|
|
53
|
+
// without TanStack's server-fn stripping), so Vite would pre-bundle the whole
|
|
54
|
+
// driver for a browser that never loads it. Mongoose 9 has no browser build, so
|
|
55
|
+
// that bundles `mongodb`, whose optional `@aws-sdk/credential-providers` peer —
|
|
56
|
+
// when linked, as in the monorepo via `@payloadcms/payload-cloud` — fails the
|
|
57
|
+
// same `MISSING_EXPORT` way. Published installs reach the adapter packages;
|
|
58
|
+
// the monorepo, which resolves them to source, reaches the drivers.
|
|
59
|
+
'@payloadcms/db-d1-sqlite',
|
|
60
|
+
'@payloadcms/db-mongodb',
|
|
61
|
+
'@payloadcms/db-postgres',
|
|
62
|
+
'@payloadcms/db-sqlite',
|
|
63
|
+
'@payloadcms/db-vercel-postgres',
|
|
64
|
+
'@payloadcms/drizzle',
|
|
65
|
+
'mongodb',
|
|
66
|
+
'mongoose'
|
|
91
67
|
];
|
|
92
68
|
/**
|
|
93
69
|
* Transitive dependencies of `@payloadcms/ui` and `payload` that need to be
|
|
94
70
|
* pre-bundled for the client. Vite's auto-discovery doesn't reliably pick
|
|
95
71
|
* these up because their parent packages are in `optimizeDeps.exclude`, so we
|
|
96
72
|
* list them explicitly using the `parent > child` syntax.
|
|
73
|
+
*
|
|
74
|
+
* Each entry below fixes a specific late-discovery re-optimization: without it,
|
|
75
|
+
* Vite discovers the dep *after* its initial crawl, forcing a full dep
|
|
76
|
+
* re-optimization mid-session that 404s in-flight `.vite/deps/*` chunks and
|
|
77
|
+
* remounts the admin (dropping client state). This is why the list can't simply
|
|
78
|
+
* be deleted — it is the "complete first pass" for the admin's dep graph.
|
|
97
79
|
*/ export const optimizeDepsIncludeDefaults = [
|
|
98
80
|
'@payloadcms/ui > sonner',
|
|
99
81
|
'@payloadcms/ui > @faceless-ui/modal',
|
|
@@ -145,16 +127,16 @@
|
|
|
145
127
|
'@payloadcms/ui > react-select > prop-types > react-is',
|
|
146
128
|
'@payloadcms/ui > date-fns/locale/en-US',
|
|
147
129
|
// Further late discoveries observed re-optimizing mid-run in CI cold starts
|
|
148
|
-
// (see CI logs: "✨ new dependencies optimized: @dnd-kit/modifiers /
|
|
130
|
+
// (see CI logs: "✨ new dependencies optimized: @dnd-kit/modifiers / zod /
|
|
149
131
|
// dequal/lite"). The modular dashboard pulls in `@dnd-kit/modifiers` on first
|
|
150
132
|
// render; form-state diffing reaches `dequal/lite` (a distinct entry point
|
|
151
133
|
// from the already-listed `dequal`); client-side field validation reaches
|
|
152
|
-
// `
|
|
134
|
+
// `zod` *through `payload`* — it is `ssrExternal` server-side but still
|
|
153
135
|
// bundled into the client, and must be pathed via `payload` so the optimizer
|
|
154
136
|
// pre-bundles the exact copy the runtime loads.
|
|
155
137
|
'@payloadcms/ui > @dnd-kit/modifiers',
|
|
156
138
|
'@payloadcms/ui > dequal/lite',
|
|
157
|
-
'payload >
|
|
139
|
+
'payload > zod',
|
|
158
140
|
// The storage client-upload suites (esp. vercel-blob) crawl part of the
|
|
159
141
|
// `payload` server runtime into the client bundle and discover these late,
|
|
160
142
|
// triggering several "optimized dependencies changed. reloading" waves that
|
|
@@ -167,11 +149,12 @@
|
|
|
167
149
|
'payload > path-to-regexp',
|
|
168
150
|
'payload > console-table-printer',
|
|
169
151
|
'payload > ci-info',
|
|
170
|
-
'payload > image-
|
|
171
|
-
'payload > image-size/fromFile',
|
|
152
|
+
'payload > image-dimensions',
|
|
172
153
|
'payload > ipaddr.js',
|
|
173
154
|
'payload > range-parser',
|
|
174
|
-
'payload > sanitize-filename'
|
|
155
|
+
'payload > sanitize-filename',
|
|
156
|
+
// `@azure/storage-blob` is excluded, so pre-bundle its CommonJS browser dependency explicitly.
|
|
157
|
+
'@azure/storage-blob > events'
|
|
175
158
|
];
|
|
176
159
|
|
|
177
|
-
//# sourceMappingURL=
|
|
160
|
+
//# sourceMappingURL=optimizeDeps.js.map
|