@bleedingdev/modern-js-app-tools 3.8.3-ultramodern.1 → 3.8.3-ultramodern.2
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/bin/modern-bundle-docs.js +11 -0
- package/bin/modern.js +11 -0
- package/dist/cjs/builder/generator/getBuilderEnvironments.js +13 -241
- package/dist/cjs/builder/generator/index.js +0 -1
- package/dist/cjs/builder/shared/builderPlugins/adapterSSR.js +37 -9
- package/dist/cjs/builder/shared/builderPlugins/index.js +6 -13
- package/dist/cjs/builder/shared/bundlerPlugins/index.js +6 -13
- package/dist/cjs/builder/shared/lazyCompilation.js +9 -9
- package/dist/cjs/bundleDocs.js +1 -1
- package/dist/cjs/index.js +59 -60
- package/dist/cjs/plugins/analyze/getServerRoutes.js +1 -1
- package/dist/cjs/plugins/analyze/isDefaultExportFunction.js +1 -9
- package/dist/cjs/plugins/backend-federation/codegen.js +2 -1
- package/dist/cjs/plugins/backend-federation/config.js +2 -2
- package/dist/cjs/plugins/backend-federation/emit.js +6 -4
- package/dist/cjs/plugins/deploy/index.js +4 -4
- package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/index.js +23 -149
- package/dist/cjs/plugins/deploy/platforms/templates/netlify-entry.cjs +41 -62
- package/dist/cjs/plugins/deploy/platforms/templates/netlify-entry.mjs +41 -63
- package/dist/cjs/plugins/deploy/platforms/templates/node-entry.cjs +35 -52
- package/dist/cjs/plugins/deploy/platforms/templates/node-entry.mjs +35 -53
- package/dist/cjs/plugins/deploy/platforms/templates/vercel-entry.cjs +41 -61
- package/dist/cjs/plugins/deploy/platforms/templates/vercel-entry.mjs +40 -61
- package/dist/cjs/plugins/ultramodernReleaseEnvelope.js +3 -59
- package/dist/cjs/presetUltramodern.js +9 -4
- package/dist/cjs/run/index.js +9 -9
- package/dist/cjs/utils/register.js +6 -3
- package/dist/esm/builder/generator/getBuilderEnvironments.mjs +12 -231
- package/dist/esm/builder/generator/index.mjs +1 -2
- package/dist/esm/builder/shared/builderPlugins/adapterSSR.mjs +34 -9
- package/dist/esm/builder/shared/builderPlugins/index.mjs +0 -1
- package/dist/esm/builder/shared/bundlerPlugins/index.mjs +0 -1
- package/dist/esm/builder/shared/lazyCompilation.mjs +4 -4
- package/dist/esm/bundleDocs.mjs +1 -1
- package/dist/esm/index.mjs +3 -3
- package/dist/esm/plugins/analyze/getServerRoutes.mjs +1 -1
- package/dist/esm/plugins/analyze/isDefaultExportFunction.mjs +1 -9
- package/dist/esm/plugins/backend-federation/codegen.mjs +2 -1
- package/dist/esm/plugins/backend-federation/config.mjs +1 -1
- package/dist/esm/plugins/backend-federation/emit.mjs +5 -3
- package/dist/esm/plugins/deploy/index.mjs +1 -1
- package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/index.mjs +1 -133
- package/dist/esm/plugins/deploy/platforms/templates/netlify-entry.cjs +41 -62
- package/dist/esm/plugins/deploy/platforms/templates/netlify-entry.mjs +41 -63
- package/dist/esm/plugins/deploy/platforms/templates/node-entry.cjs +35 -52
- package/dist/esm/plugins/deploy/platforms/templates/node-entry.mjs +35 -53
- package/dist/esm/plugins/deploy/platforms/templates/vercel-entry.cjs +41 -61
- package/dist/esm/plugins/deploy/platforms/templates/vercel-entry.mjs +40 -61
- package/dist/esm/plugins/ultramodernReleaseEnvelope.mjs +3 -49
- package/dist/esm/presetUltramodern.mjs +2 -1
- package/dist/esm/run/index.mjs +9 -9
- package/dist/esm/utils/register.mjs +6 -3
- package/dist/esm-node/builder/generator/getBuilderEnvironments.mjs +12 -234
- package/dist/esm-node/builder/generator/index.mjs +1 -2
- package/dist/esm-node/builder/shared/builderPlugins/adapterSSR.mjs +34 -9
- package/dist/esm-node/builder/shared/builderPlugins/index.mjs +0 -1
- package/dist/esm-node/builder/shared/bundlerPlugins/index.mjs +0 -1
- package/dist/esm-node/builder/shared/lazyCompilation.mjs +4 -4
- package/dist/esm-node/bundleDocs.mjs +1 -1
- package/dist/esm-node/index.mjs +3 -3
- package/dist/esm-node/plugins/analyze/getServerRoutes.mjs +1 -1
- package/dist/esm-node/plugins/analyze/isDefaultExportFunction.mjs +1 -9
- package/dist/esm-node/plugins/backend-federation/codegen.mjs +2 -1
- package/dist/esm-node/plugins/backend-federation/config.mjs +1 -1
- package/dist/esm-node/plugins/backend-federation/emit.mjs +5 -3
- package/dist/esm-node/plugins/deploy/index.mjs +1 -1
- package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/index.mjs +1 -133
- package/dist/esm-node/plugins/deploy/platforms/templates/netlify-entry.cjs +41 -62
- package/dist/esm-node/plugins/deploy/platforms/templates/netlify-entry.mjs +41 -63
- package/dist/esm-node/plugins/deploy/platforms/templates/node-entry.cjs +35 -52
- package/dist/esm-node/plugins/deploy/platforms/templates/node-entry.mjs +35 -53
- package/dist/esm-node/plugins/deploy/platforms/templates/vercel-entry.cjs +41 -61
- package/dist/esm-node/plugins/deploy/platforms/templates/vercel-entry.mjs +40 -61
- package/dist/esm-node/plugins/ultramodernReleaseEnvelope.mjs +3 -49
- package/dist/esm-node/presetUltramodern.mjs +2 -1
- package/dist/esm-node/run/index.mjs +9 -9
- package/dist/esm-node/utils/register.mjs +6 -3
- package/dist/types/builder/generator/getBuilderEnvironments.d.ts +0 -29
- package/dist/types/builder/shared/builderPlugins/adapterSSR.d.ts +11 -0
- package/dist/types/builder/shared/builderPlugins/index.d.ts +0 -1
- package/dist/types/builder/shared/bundlerPlugins/index.d.ts +0 -1
- package/dist/types/builder/shared/lazyCompilation.d.ts +7 -7
- package/dist/types/plugins/analyze/getServerRoutes.d.ts +1 -1
- package/dist/types/plugins/backend-federation/codegen.d.ts +4 -1
- package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/index.d.ts +1 -18
- package/dist/types/presetUltramodern.d.ts +1 -0
- package/dist/types/types/config/deploy.d.ts +2 -2
- package/docs/community/showcase.md +3 -5
- package/docs/guides/advanced-features/bff/frameworks.md +1 -1
- package/docs/guides/basic-features/deploy.md +2 -2
- package/docs/guides/get-started/quick-start.md +9 -8
- package/docs/guides/get-started/tech-stack.md +1 -1
- package/docs/guides/get-started/ultramodern.md +18 -18
- package/docs/guides/troubleshooting/cli.md +1 -1
- package/docs/llms.txt +2 -2
- package/docs/tutorials/examples/csr-auth.md +1 -1
- package/package.json +15 -27
- package/rslib.config.mts +4 -7
- package/dist/cjs/builder/shared/builderPlugins/adapterLazyCompilation.js +0 -74
- package/dist/cjs/builder/shared/bundlerPlugins/CssExtractRuntimePlugin.js +0 -72
- package/dist/cjs/plugins/deploy/platforms/cloudflare/artifacts.js +0 -127
- package/dist/cjs/plugins/deploy/platforms/cloudflare/constants.js +0 -141
- package/dist/cjs/plugins/deploy/platforms/cloudflare/delivery-unit.js +0 -139
- package/dist/cjs/plugins/deploy/platforms/cloudflare/i18n-worker.js +0 -135
- package/dist/cjs/plugins/deploy/platforms/cloudflare/index.js +0 -150
- package/dist/cjs/plugins/deploy/platforms/cloudflare/security-policies.js +0 -205
- package/dist/cjs/plugins/deploy/platforms/cloudflare/types.js +0 -18
- package/dist/cjs/plugins/deploy/platforms/cloudflare/utils.js +0 -66
- package/dist/cjs/plugins/deploy/platforms/cloudflare/worker-manifest.js +0 -208
- package/dist/cjs/plugins/deploy/platforms/cloudflare/wrangler-config.js +0 -204
- package/dist/cjs/plugins/deploy/platforms/cloudflare-output-contract.js +0 -108
- package/dist/cjs/plugins/deploy/platforms/cloudflare-output-plan.js +0 -93
- package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/identity.js +0 -83
- package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/issues.js +0 -54
- package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/manifest.js +0 -89
- package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/mutation-policy.js +0 -151
- package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/worker-bundles.js +0 -378
- package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.001-bootstrap-security.mjs +0 -251
- package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.002-assets-routes.mjs +0 -191
- package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.003-i18n-locales.mjs +0 -514
- package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.004-rendering-css.mjs +0 -1012
- package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.005-worker-dispatch.mjs +0 -363
- package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.006-fetch-handler.mjs +0 -93
- package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-worker-fs-promises.mjs +0 -11
- package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-worker-loadable-server.mjs +0 -281
- package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-worker-mf-ssr-runtime-plugin.mjs +0 -14
- package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-worker-path.mjs +0 -98
- package/dist/cjs/types/config/cloudflareDeploy.js +0 -18
- package/dist/cjs/ultramodern-release-envelope/canonical.js +0 -68
- package/dist/cjs/ultramodern-release-envelope/framework-output.js +0 -649
- package/dist/cjs/ultramodern-release-envelope/index.js +0 -399
- package/dist/cjs/ultramodern-release-envelope/types.js +0 -51
- package/dist/cjs/ultramodern-release-identity.js +0 -110
- package/dist/esm/builder/shared/builderPlugins/adapterLazyCompilation.mjs +0 -36
- package/dist/esm/builder/shared/bundlerPlugins/CssExtractRuntimePlugin.mjs +0 -30
- package/dist/esm/plugins/deploy/platforms/cloudflare/artifacts.mjs +0 -64
- package/dist/esm/plugins/deploy/platforms/cloudflare/constants.mjs +0 -34
- package/dist/esm/plugins/deploy/platforms/cloudflare/delivery-unit.mjs +0 -88
- package/dist/esm/plugins/deploy/platforms/cloudflare/i18n-worker.mjs +0 -97
- package/dist/esm/plugins/deploy/platforms/cloudflare/index.mjs +0 -102
- package/dist/esm/plugins/deploy/platforms/cloudflare/security-policies.mjs +0 -167
- package/dist/esm/plugins/deploy/platforms/cloudflare/types.mjs +0 -0
- package/dist/esm/plugins/deploy/platforms/cloudflare/utils.mjs +0 -12
- package/dist/esm/plugins/deploy/platforms/cloudflare/worker-manifest.mjs +0 -148
- package/dist/esm/plugins/deploy/platforms/cloudflare/wrangler-config.mjs +0 -150
- package/dist/esm/plugins/deploy/platforms/cloudflare-output-contract.mjs +0 -31
- package/dist/esm/plugins/deploy/platforms/cloudflare-output-plan.mjs +0 -45
- package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/identity.mjs +0 -45
- package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/issues.mjs +0 -10
- package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/manifest.mjs +0 -51
- package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/mutation-policy.mjs +0 -99
- package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/worker-bundles.mjs +0 -313
- package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.001-bootstrap-security.mjs +0 -251
- package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.002-assets-routes.mjs +0 -191
- package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.003-i18n-locales.mjs +0 -514
- package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.004-rendering-css.mjs +0 -1012
- package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.005-worker-dispatch.mjs +0 -363
- package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.006-fetch-handler.mjs +0 -93
- package/dist/esm/plugins/deploy/platforms/templates/cloudflare-worker-fs-promises.mjs +0 -11
- package/dist/esm/plugins/deploy/platforms/templates/cloudflare-worker-loadable-server.mjs +0 -281
- package/dist/esm/plugins/deploy/platforms/templates/cloudflare-worker-mf-ssr-runtime-plugin.mjs +0 -14
- package/dist/esm/plugins/deploy/platforms/templates/cloudflare-worker-path.mjs +0 -98
- package/dist/esm/types/config/cloudflareDeploy.mjs +0 -0
- package/dist/esm/ultramodern-release-envelope/canonical.mjs +0 -21
- package/dist/esm/ultramodern-release-envelope/framework-output.mjs +0 -573
- package/dist/esm/ultramodern-release-envelope/index.mjs +0 -335
- package/dist/esm/ultramodern-release-envelope/types.mjs +0 -7
- package/dist/esm/ultramodern-release-identity.mjs +0 -66
- package/dist/esm-node/builder/shared/builderPlugins/adapterLazyCompilation.mjs +0 -37
- package/dist/esm-node/builder/shared/bundlerPlugins/CssExtractRuntimePlugin.mjs +0 -31
- package/dist/esm-node/plugins/deploy/platforms/cloudflare/artifacts.mjs +0 -65
- package/dist/esm-node/plugins/deploy/platforms/cloudflare/constants.mjs +0 -35
- package/dist/esm-node/plugins/deploy/platforms/cloudflare/delivery-unit.mjs +0 -89
- package/dist/esm-node/plugins/deploy/platforms/cloudflare/i18n-worker.mjs +0 -98
- package/dist/esm-node/plugins/deploy/platforms/cloudflare/index.mjs +0 -103
- package/dist/esm-node/plugins/deploy/platforms/cloudflare/security-policies.mjs +0 -168
- package/dist/esm-node/plugins/deploy/platforms/cloudflare/types.mjs +0 -1
- package/dist/esm-node/plugins/deploy/platforms/cloudflare/utils.mjs +0 -13
- package/dist/esm-node/plugins/deploy/platforms/cloudflare/worker-manifest.mjs +0 -149
- package/dist/esm-node/plugins/deploy/platforms/cloudflare/wrangler-config.mjs +0 -151
- package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-contract.mjs +0 -32
- package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-plan.mjs +0 -46
- package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/identity.mjs +0 -46
- package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/issues.mjs +0 -11
- package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/manifest.mjs +0 -52
- package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/mutation-policy.mjs +0 -100
- package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/worker-bundles.mjs +0 -314
- package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.001-bootstrap-security.mjs +0 -251
- package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.002-assets-routes.mjs +0 -191
- package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.003-i18n-locales.mjs +0 -514
- package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.004-rendering-css.mjs +0 -1012
- package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.005-worker-dispatch.mjs +0 -363
- package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.006-fetch-handler.mjs +0 -93
- package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-worker-fs-promises.mjs +0 -11
- package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-worker-loadable-server.mjs +0 -281
- package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-worker-mf-ssr-runtime-plugin.mjs +0 -14
- package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-worker-path.mjs +0 -98
- package/dist/esm-node/types/config/cloudflareDeploy.mjs +0 -1
- package/dist/esm-node/ultramodern-release-envelope/canonical.mjs +0 -22
- package/dist/esm-node/ultramodern-release-envelope/framework-output.mjs +0 -574
- package/dist/esm-node/ultramodern-release-envelope/index.mjs +0 -336
- package/dist/esm-node/ultramodern-release-envelope/types.mjs +0 -8
- package/dist/esm-node/ultramodern-release-identity.mjs +0 -67
- package/dist/types/builder/shared/builderPlugins/adapterLazyCompilation.d.ts +0 -3
- package/dist/types/builder/shared/bundlerPlugins/CssExtractRuntimePlugin.d.ts +0 -6
- package/dist/types/plugins/deploy/platforms/cloudflare/artifacts.d.ts +0 -15
- package/dist/types/plugins/deploy/platforms/cloudflare/constants.d.ts +0 -24
- package/dist/types/plugins/deploy/platforms/cloudflare/delivery-unit.d.ts +0 -23
- package/dist/types/plugins/deploy/platforms/cloudflare/i18n-worker.d.ts +0 -22
- package/dist/types/plugins/deploy/platforms/cloudflare/index.d.ts +0 -2
- package/dist/types/plugins/deploy/platforms/cloudflare/security-policies.d.ts +0 -51
- package/dist/types/plugins/deploy/platforms/cloudflare/types.d.ts +0 -5
- package/dist/types/plugins/deploy/platforms/cloudflare/utils.d.ts +0 -6
- package/dist/types/plugins/deploy/platforms/cloudflare/worker-manifest.d.ts +0 -122
- package/dist/types/plugins/deploy/platforms/cloudflare/wrangler-config.d.ts +0 -46
- package/dist/types/plugins/deploy/platforms/cloudflare-output-contract.d.ts +0 -14
- package/dist/types/plugins/deploy/platforms/cloudflare-output-plan.d.ts +0 -34
- package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/identity.d.ts +0 -4
- package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/issues.d.ts +0 -14
- package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/manifest.d.ts +0 -2
- package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/mutation-policy.d.ts +0 -14
- package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/worker-bundles.d.ts +0 -20
- package/dist/types/plugins/deploy/platforms/templates/cloudflare-entry.001-bootstrap-security.d.mts +0 -1
- package/dist/types/plugins/deploy/platforms/templates/cloudflare-entry.002-assets-routes.d.mts +0 -1
- package/dist/types/plugins/deploy/platforms/templates/cloudflare-entry.003-i18n-locales.d.mts +0 -1
- package/dist/types/plugins/deploy/platforms/templates/cloudflare-entry.004-rendering-css.d.mts +0 -1
- package/dist/types/plugins/deploy/platforms/templates/cloudflare-entry.005-worker-dispatch.d.mts +0 -1
- package/dist/types/plugins/deploy/platforms/templates/cloudflare-entry.006-fetch-handler.d.mts +0 -4
- package/dist/types/plugins/deploy/platforms/templates/cloudflare-worker-fs-promises.d.mts +0 -5
- package/dist/types/plugins/deploy/platforms/templates/cloudflare-worker-loadable-server.d.mts +0 -48
- package/dist/types/plugins/deploy/platforms/templates/cloudflare-worker-mf-ssr-runtime-plugin.d.mts +0 -13
- package/dist/types/plugins/deploy/platforms/templates/cloudflare-worker-path.d.mts +0 -21
- package/dist/types/types/config/cloudflareDeploy.d.ts +0 -161
- package/dist/types/ultramodern-release-envelope/canonical.d.ts +0 -5
- package/dist/types/ultramodern-release-envelope/framework-output.d.ts +0 -32
- package/dist/types/ultramodern-release-envelope/index.d.ts +0 -6
- package/dist/types/ultramodern-release-envelope/types.d.ts +0 -62
- package/dist/types/ultramodern-release-identity.d.ts +0 -16
|
@@ -1,649 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.n = (module)=>{
|
|
5
|
-
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
6
|
-
__webpack_require__.d(getter, {
|
|
7
|
-
a: getter
|
|
8
|
-
});
|
|
9
|
-
return getter;
|
|
10
|
-
};
|
|
11
|
-
})();
|
|
12
|
-
(()=>{
|
|
13
|
-
__webpack_require__.d = (exports1, getters, values)=>{
|
|
14
|
-
var define = (defs, kind)=>{
|
|
15
|
-
for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
16
|
-
enumerable: true,
|
|
17
|
-
[kind]: defs[key]
|
|
18
|
-
});
|
|
19
|
-
};
|
|
20
|
-
define(getters, "get");
|
|
21
|
-
define(values, "value");
|
|
22
|
-
};
|
|
23
|
-
})();
|
|
24
|
-
(()=>{
|
|
25
|
-
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
26
|
-
})();
|
|
27
|
-
(()=>{
|
|
28
|
-
__webpack_require__.r = (exports1)=>{
|
|
29
|
-
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
30
|
-
value: 'Module'
|
|
31
|
-
});
|
|
32
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
33
|
-
value: true
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
})();
|
|
37
|
-
var __webpack_exports__ = {};
|
|
38
|
-
__webpack_require__.r(__webpack_exports__);
|
|
39
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
40
|
-
MICROVERTICAL_RELEASE_ENVELOPE_PATH: ()=>MICROVERTICAL_RELEASE_ENVELOPE_PATH,
|
|
41
|
-
MICROVERTICAL_RELEASE_IDENTITY_CARRIERS_PATH: ()=>MICROVERTICAL_RELEASE_IDENTITY_CARRIERS_PATH,
|
|
42
|
-
emitCloudflareStagedReleaseEnvelope: ()=>emitCloudflareStagedReleaseEnvelope,
|
|
43
|
-
emitFrameworkMicroVerticalReleaseEnvelope: ()=>emitFrameworkMicroVerticalReleaseEnvelope,
|
|
44
|
-
emitNodeStagedReleaseEnvelope: ()=>emitNodeStagedReleaseEnvelope,
|
|
45
|
-
readFrameworkMicroVerticalReleaseEnvelope: ()=>readFrameworkMicroVerticalReleaseEnvelope,
|
|
46
|
-
stageCloudflareReleaseEnvelope: ()=>stageCloudflareReleaseEnvelope,
|
|
47
|
-
verifyBuildOutputReleaseEnvelope: ()=>verifyBuildOutputReleaseEnvelope,
|
|
48
|
-
verifyCloudflareReleaseEnvelopeStaging: ()=>verifyCloudflareReleaseEnvelopeStaging,
|
|
49
|
-
verifyNodeReleaseEnvelopeStaging: ()=>verifyNodeReleaseEnvelopeStaging
|
|
50
|
-
});
|
|
51
|
-
const external_node_crypto_namespaceObject = require("node:crypto");
|
|
52
|
-
const promises_namespaceObject = require("node:fs/promises");
|
|
53
|
-
var promises_default = /*#__PURE__*/ __webpack_require__.n(promises_namespaceObject);
|
|
54
|
-
const external_node_path_namespaceObject = require("node:path");
|
|
55
|
-
var external_node_path_default = /*#__PURE__*/ __webpack_require__.n(external_node_path_namespaceObject);
|
|
56
|
-
const universal_namespaceObject = require("@modern-js/utils/universal");
|
|
57
|
-
const external_index_js_namespaceObject = require("./index.js");
|
|
58
|
-
const MICROVERTICAL_RELEASE_ENVELOPE_PATH = 'release/microvertical-release-envelope.json';
|
|
59
|
-
const MICROVERTICAL_RELEASE_IDENTITY_CARRIERS_PATH = 'release/microvertical-release-identity-carriers.json';
|
|
60
|
-
const MICROVERTICAL_RELEASE_IDENTITY_CARRIERS_KIND = 'ultramodern-release-identity-carriers';
|
|
61
|
-
const MICROVERTICAL_RELEASE_IDENTITY_CARRIERS_SCHEMA_VERSION = 1;
|
|
62
|
-
const COMPILED_MODULE_PATTERN = /\.(?:c|m)?js$/u;
|
|
63
|
-
const EFFECT_BFF_WORKER_PATTERN = /^worker\/__modern_bff_effect\.(?:c|m)?js$/u;
|
|
64
|
-
const isRecord = (value)=>'object' == typeof value && null !== value && !Array.isArray(value);
|
|
65
|
-
const flattenStrings = (value)=>'string' == typeof value ? [
|
|
66
|
-
value
|
|
67
|
-
] : Array.isArray(value) ? value.flatMap(flattenStrings) : [];
|
|
68
|
-
const collectNestedStrings = (value, key)=>{
|
|
69
|
-
if (Array.isArray(value)) return value.flatMap((item)=>collectNestedStrings(item, key));
|
|
70
|
-
if (!isRecord(value)) return [];
|
|
71
|
-
return Object.entries(value).flatMap(([entryKey, entryValue])=>[
|
|
72
|
-
...entryKey === key ? flattenStrings(entryValue) : [],
|
|
73
|
-
...collectNestedStrings(entryValue, key)
|
|
74
|
-
]);
|
|
75
|
-
};
|
|
76
|
-
const manifestReferencedClientModules = async (distDirectory, files, manifestLogicalPath = 'mf-manifest.json')=>{
|
|
77
|
-
const manifest = await readJson(external_node_path_default().join(distDirectory, manifestLogicalPath));
|
|
78
|
-
const references = [
|
|
79
|
-
...collectNestedStrings(manifest, 'path'),
|
|
80
|
-
...collectNestedStrings(manifest, 'name'),
|
|
81
|
-
...collectNestedStrings(manifest, 'sync'),
|
|
82
|
-
...collectNestedStrings(manifest, 'async')
|
|
83
|
-
];
|
|
84
|
-
const normalizedReferences = new Set(references.filter((value)=>'string' == typeof value).map((value)=>value.replace(/^https?:\/\/[^/]+/u, '')).map((value)=>value.replace(/^\/+/u, '')));
|
|
85
|
-
return files.filter((logicalPath)=>COMPILED_MODULE_PATTERN.test(logicalPath) && [
|
|
86
|
-
...normalizedReferences
|
|
87
|
-
].some((reference)=>reference === logicalPath || reference.endsWith(`/${logicalPath}`) || logicalPath.endsWith(`/${reference}`)));
|
|
88
|
-
};
|
|
89
|
-
const routeReferencedSsrModules = async (distDirectory, files, target, routeSpecLogicalPath = 'route.json')=>{
|
|
90
|
-
const routeSpec = await readJson(external_node_path_default().join(distDirectory, routeSpecLogicalPath));
|
|
91
|
-
const field = 'node' === target ? 'bundle' : 'worker';
|
|
92
|
-
const references = collectNestedStrings(routeSpec, field).map((value)=>value.replace(/^\/+/u, ''));
|
|
93
|
-
return files.filter((logicalPath)=>COMPILED_MODULE_PATTERN.test(logicalPath) && references.includes(logicalPath));
|
|
94
|
-
};
|
|
95
|
-
const readJson = async (filePath)=>JSON.parse(await promises_default().readFile(filePath, 'utf8'));
|
|
96
|
-
const isFilesystemPathInside = (root, candidate)=>{
|
|
97
|
-
const relative = external_node_path_default().relative(root, candidate);
|
|
98
|
-
return '' === relative || !relative.startsWith(`..${external_node_path_default().sep}`) && '..' !== relative && !external_node_path_default().isAbsolute(relative);
|
|
99
|
-
};
|
|
100
|
-
const isMissingPathError = (error)=>isRecord(error) && 'ENOENT' === error.code;
|
|
101
|
-
const resolveSafeReleaseEnvelopePath = async ({ artifactRoot, createDirectory })=>{
|
|
102
|
-
const resolvedRoot = external_node_path_default().resolve(artifactRoot);
|
|
103
|
-
const realRoot = await promises_default().realpath(resolvedRoot);
|
|
104
|
-
const releaseDirectory = external_node_path_default().join(resolvedRoot, 'release');
|
|
105
|
-
let releaseStat;
|
|
106
|
-
try {
|
|
107
|
-
releaseStat = await promises_default().lstat(releaseDirectory);
|
|
108
|
-
} catch (error) {
|
|
109
|
-
if (!isMissingPathError(error)) throw error;
|
|
110
|
-
if (!createDirectory) return;
|
|
111
|
-
await promises_default().mkdir(releaseDirectory);
|
|
112
|
-
releaseStat = await promises_default().lstat(releaseDirectory);
|
|
113
|
-
}
|
|
114
|
-
if (releaseStat.isSymbolicLink() || !releaseStat.isDirectory()) throw new Error('[ultramodern-release-envelope] release must be a real directory inside artifactRoot, not a symlink or file.');
|
|
115
|
-
const realReleaseDirectory = await promises_default().realpath(releaseDirectory);
|
|
116
|
-
if (!isFilesystemPathInside(realRoot, realReleaseDirectory)) throw new Error('[ultramodern-release-envelope] release directory resolves outside artifactRoot.');
|
|
117
|
-
const envelopePath = external_node_path_default().join(releaseDirectory, external_node_path_default().basename(MICROVERTICAL_RELEASE_ENVELOPE_PATH));
|
|
118
|
-
try {
|
|
119
|
-
const envelopeStat = await promises_default().lstat(envelopePath);
|
|
120
|
-
if (envelopeStat.isSymbolicLink() || !envelopeStat.isFile()) throw new Error('[ultramodern-release-envelope] release envelope must be a real file inside artifactRoot, not a symlink or directory.');
|
|
121
|
-
const realEnvelopePath = await promises_default().realpath(envelopePath);
|
|
122
|
-
if (!isFilesystemPathInside(realRoot, realEnvelopePath)) throw new Error('[ultramodern-release-envelope] release envelope resolves outside artifactRoot.');
|
|
123
|
-
} catch (error) {
|
|
124
|
-
if (!isMissingPathError(error)) throw error;
|
|
125
|
-
if (!createDirectory) return;
|
|
126
|
-
}
|
|
127
|
-
return envelopePath;
|
|
128
|
-
};
|
|
129
|
-
const writeReleaseEnvelope = async (artifactRoot, envelope)=>{
|
|
130
|
-
const envelopePath = await resolveSafeReleaseEnvelopePath({
|
|
131
|
-
artifactRoot,
|
|
132
|
-
createDirectory: true
|
|
133
|
-
});
|
|
134
|
-
if (!envelopePath) throw new Error('[ultramodern-release-envelope] could not resolve release envelope path.');
|
|
135
|
-
await promises_default().writeFile(envelopePath, `${(0, external_index_js_namespaceObject.canonicalSerializeMicroVerticalReleaseEnvelope)(envelope)}\n`);
|
|
136
|
-
};
|
|
137
|
-
const readBuildArtifact = async (distDirectory)=>{
|
|
138
|
-
const artifactPath = external_node_path_default().join(distDirectory, universal_namespaceObject.ULTRAMODERN_BUILD_ARTIFACT_FILE);
|
|
139
|
-
const artifact = await readJson(artifactPath);
|
|
140
|
-
if (!(0, universal_namespaceObject.isUltramodernBuildArtifact)(artifact)) throw new Error(`[ultramodern-release-envelope] ${universal_namespaceObject.ULTRAMODERN_BUILD_ARTIFACT_FILE} is missing or invalid.`);
|
|
141
|
-
if ('workspace' === artifact.deliveryUnit.sourceRevision) throw new Error('[ultramodern-release-envelope] sourceRevision "workspace" cannot produce a promotable full-stack envelope.');
|
|
142
|
-
return artifact;
|
|
143
|
-
};
|
|
144
|
-
const assertIdentityBlock = (value, identity, location, includeReleaseVersion)=>{
|
|
145
|
-
if (!isRecord(value)) throw new Error(`[ultramodern-release-envelope] ${location} is missing delivery identity.`);
|
|
146
|
-
const expected = {
|
|
147
|
-
unitId: identity.unitId,
|
|
148
|
-
buildMarker: identity.buildMarker,
|
|
149
|
-
sourceRevision: identity.sourceRevision,
|
|
150
|
-
...includeReleaseVersion ? {
|
|
151
|
-
version: identity.releaseVersion
|
|
152
|
-
} : void 0
|
|
153
|
-
};
|
|
154
|
-
for (const [field, expectedValue] of Object.entries(expected))if (value[field] !== expectedValue) throw new Error(`[ultramodern-release-envelope] ${location}.${field} must match ${expectedValue}; received ${String(value[field])}.`);
|
|
155
|
-
};
|
|
156
|
-
const readBackendManifest = async (distDirectory, identity)=>{
|
|
157
|
-
const manifest = await readJson(external_node_path_default().join(distDirectory, universal_namespaceObject.BACKEND_FEDERATION_MANIFEST_FILE));
|
|
158
|
-
if (!isRecord(manifest) || !isRecord(manifest.backendFederation)) throw new Error('[ultramodern-release-envelope] backend federation manifest is missing backendFederation metadata.');
|
|
159
|
-
assertIdentityBlock(manifest.backendFederation.deliveryUnit, identity, 'backendFederation.deliveryUnit', true);
|
|
160
|
-
const versionBoundary = manifest.backendFederation.versionBoundary;
|
|
161
|
-
assertIdentityBlock(isRecord(versionBoundary) ? versionBoundary.deliveryUnit : void 0, identity, 'backendFederation.versionBoundary.deliveryUnit', false);
|
|
162
|
-
};
|
|
163
|
-
const collectFiles = async (root)=>{
|
|
164
|
-
const resolvedRoot = external_node_path_default().resolve(root);
|
|
165
|
-
const realRoot = await promises_default().realpath(resolvedRoot);
|
|
166
|
-
const collectDirectory = async (relativeDirectory)=>{
|
|
167
|
-
const directory = external_node_path_default().join(resolvedRoot, ...relativeDirectory.split('/').filter(Boolean));
|
|
168
|
-
const entries = await promises_default().readdir(directory, {
|
|
169
|
-
withFileTypes: true
|
|
170
|
-
});
|
|
171
|
-
const files = [];
|
|
172
|
-
for (const entry of entries){
|
|
173
|
-
const logicalPath = external_node_path_default().posix.join(relativeDirectory, entry.name);
|
|
174
|
-
if ('release' === logicalPath || logicalPath.startsWith('release/')) continue;
|
|
175
|
-
if (entry.isDirectory()) {
|
|
176
|
-
files.push(...await collectDirectory(logicalPath));
|
|
177
|
-
continue;
|
|
178
|
-
}
|
|
179
|
-
if (entry.isFile()) {
|
|
180
|
-
files.push(logicalPath);
|
|
181
|
-
continue;
|
|
182
|
-
}
|
|
183
|
-
if (!entry.isSymbolicLink()) continue;
|
|
184
|
-
const lexicalPath = external_node_path_default().join(resolvedRoot, ...logicalPath.split('/'));
|
|
185
|
-
let realPath;
|
|
186
|
-
try {
|
|
187
|
-
realPath = await promises_default().realpath(lexicalPath);
|
|
188
|
-
} catch {
|
|
189
|
-
throw new Error(`[ultramodern-release-envelope] symbolic link ${logicalPath} cannot be resolved.`);
|
|
190
|
-
}
|
|
191
|
-
if (!isFilesystemPathInside(realRoot, realPath)) throw new Error(`[ultramodern-release-envelope] symbolic link ${logicalPath} resolves outside artifactRoot.`);
|
|
192
|
-
const targetStat = await promises_default().stat(realPath);
|
|
193
|
-
if (!targetStat.isFile() && !targetStat.isDirectory()) throw new Error(`[ultramodern-release-envelope] symbolic link ${logicalPath} must resolve to a file or directory.`);
|
|
194
|
-
const targetLogicalPath = external_node_path_default().relative(realRoot, realPath).split(external_node_path_default().sep).join('/');
|
|
195
|
-
if ('release' === targetLogicalPath || targetLogicalPath.startsWith('release/')) throw new Error(`[ultramodern-release-envelope] symbolic link ${logicalPath} targets private release metadata.`);
|
|
196
|
-
if (targetStat.isDirectory() && isFilesystemPathInside(realPath, await promises_default().realpath(external_node_path_default().dirname(lexicalPath)))) throw new Error(`[ultramodern-release-envelope] symbolic link ${logicalPath} targets an ancestor directory.`);
|
|
197
|
-
files.push(logicalPath);
|
|
198
|
-
}
|
|
199
|
-
return files;
|
|
200
|
-
};
|
|
201
|
-
return (await collectDirectory('')).sort();
|
|
202
|
-
};
|
|
203
|
-
const releaseArtifact = (logicalPath, runtime)=>({
|
|
204
|
-
logicalPath,
|
|
205
|
-
runtime
|
|
206
|
-
});
|
|
207
|
-
const writeReleaseIdentityCarrierMetadata = async (artifactRoot, identity, carrierPaths)=>{
|
|
208
|
-
const surfacesByPath = new Map();
|
|
209
|
-
for (const [surface, logicalPaths] of Object.entries(carrierPaths)){
|
|
210
|
-
if (0 === logicalPaths.length) throw new Error(`[ultramodern-release-envelope] ${surface} has no declared release-identity carrier artifact.`);
|
|
211
|
-
for (const logicalPath of logicalPaths){
|
|
212
|
-
const surfaces = surfacesByPath.get(logicalPath) ?? new Set();
|
|
213
|
-
surfaces.add(surface);
|
|
214
|
-
surfacesByPath.set(logicalPath, surfaces);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
const carriers = await Promise.all([
|
|
218
|
-
...surfacesByPath
|
|
219
|
-
].sort(([left], [right])=>left.localeCompare(right)).map(async ([logicalPath, surfaces])=>{
|
|
220
|
-
const bytes = await promises_default().readFile(external_node_path_default().join(artifactRoot, logicalPath));
|
|
221
|
-
return {
|
|
222
|
-
logicalPath,
|
|
223
|
-
byteLength: bytes.byteLength,
|
|
224
|
-
sha256: (0, external_node_crypto_namespaceObject.createHash)('sha256').update(bytes).digest('hex'),
|
|
225
|
-
surfaces: [
|
|
226
|
-
...surfaces
|
|
227
|
-
].sort((left, right)=>left.localeCompare(right))
|
|
228
|
-
};
|
|
229
|
-
}));
|
|
230
|
-
const releaseEnvelopePath = await resolveSafeReleaseEnvelopePath({
|
|
231
|
-
artifactRoot,
|
|
232
|
-
createDirectory: true
|
|
233
|
-
});
|
|
234
|
-
if (!releaseEnvelopePath) throw new Error('[ultramodern-release-envelope] could not resolve private release metadata directory.');
|
|
235
|
-
const metadataPath = external_node_path_default().join(external_node_path_default().dirname(releaseEnvelopePath), external_node_path_default().basename(MICROVERTICAL_RELEASE_IDENTITY_CARRIERS_PATH));
|
|
236
|
-
try {
|
|
237
|
-
const metadataStat = await promises_default().lstat(metadataPath);
|
|
238
|
-
if (metadataStat.isSymbolicLink() || !metadataStat.isFile()) throw new Error('[ultramodern-release-envelope] release identity carrier metadata must be a real file inside artifactRoot.');
|
|
239
|
-
} catch (error) {
|
|
240
|
-
if (!isMissingPathError(error)) throw error;
|
|
241
|
-
}
|
|
242
|
-
await promises_default().writeFile(metadataPath, `${JSON.stringify({
|
|
243
|
-
schemaVersion: MICROVERTICAL_RELEASE_IDENTITY_CARRIERS_SCHEMA_VERSION,
|
|
244
|
-
kind: MICROVERTICAL_RELEASE_IDENTITY_CARRIERS_KIND,
|
|
245
|
-
identity,
|
|
246
|
-
carriers
|
|
247
|
-
}, null, 2)}\n`);
|
|
248
|
-
return releaseArtifact(MICROVERTICAL_RELEASE_IDENTITY_CARRIERS_PATH, 'release-identity-metadata');
|
|
249
|
-
};
|
|
250
|
-
const createReleaseArtifactInputs = async (distDirectory, identity, target)=>{
|
|
251
|
-
const files = await collectFiles(distDirectory);
|
|
252
|
-
if ('node' === target && files.some((logicalPath)=>EFFECT_BFF_WORKER_PATTERN.test(logicalPath))) throw new Error('[ultramodern-release-envelope] Node target conflicts with a Cloudflare Effect API/BFF worker artifact; resolve the canonical deploy target instead of emitting a Node envelope for Cloudflare output.');
|
|
253
|
-
const uiClientPaths = files.filter((logicalPath)=>{
|
|
254
|
-
const topLevel = logicalPath.split('/')[0];
|
|
255
|
-
return 'static' === topLevel || 'html' === topLevel || 'public' === topLevel || [
|
|
256
|
-
'index.html',
|
|
257
|
-
'mf-manifest.json',
|
|
258
|
-
'mf-stats.json',
|
|
259
|
-
'remoteEntry.js',
|
|
260
|
-
'routes-manifest.json',
|
|
261
|
-
'loadable-stats.json'
|
|
262
|
-
].includes(logicalPath);
|
|
263
|
-
});
|
|
264
|
-
const ssrPaths = 'node' === target ? files.filter((logicalPath)=>logicalPath.startsWith('bundles/') && COMPILED_MODULE_PATTERN.test(logicalPath)) : files.filter((logicalPath)=>logicalPath.startsWith('worker/') && COMPILED_MODULE_PATTERN.test(logicalPath) && !EFFECT_BFF_WORKER_PATTERN.test(logicalPath));
|
|
265
|
-
const nodeApiEntryPaths = files.filter((logicalPath)=>logicalPath.startsWith('api/') && COMPILED_MODULE_PATTERN.test(logicalPath));
|
|
266
|
-
const apiBackendPaths = 'node' === target ? files.filter((logicalPath)=>(logicalPath.startsWith('api/') || logicalPath.startsWith('shared/')) && COMPILED_MODULE_PATTERN.test(logicalPath)) : files.filter((logicalPath)=>EFFECT_BFF_WORKER_PATTERN.test(logicalPath));
|
|
267
|
-
if (0 === uiClientPaths.length) throw new Error(`[ultramodern-release-envelope] ${target} full-stack MicroVertical has no UI/client artifacts.`);
|
|
268
|
-
if (0 === ssrPaths.length) throw new Error(`[ultramodern-release-envelope] ${target} full-stack MicroVertical has no ${'node' === target ? 'Node' : 'workerd'} SSR artifacts.`);
|
|
269
|
-
if ('node' === target && 0 === nodeApiEntryPaths.length || 0 === apiBackendPaths.length) throw new Error(`[ultramodern-release-envelope] ${target} full-stack MicroVertical has no actual ${'node' === target ? 'compiled Node Effect API artifact' : 'Effect API/BFF worker artifact'}.`);
|
|
270
|
-
const clientExecutionPaths = await manifestReferencedClientModules(distDirectory, files);
|
|
271
|
-
if (0 === clientExecutionPaths.length) throw new Error('[ultramodern-release-envelope] UI/client manifest references no compiled execution module.');
|
|
272
|
-
const ssrExecutionPaths = await routeReferencedSsrModules(distDirectory, files, target);
|
|
273
|
-
if (0 === ssrExecutionPaths.length) throw new Error(`[ultramodern-release-envelope] route manifest references no emitted ${'node' === target ? 'Node' : 'Cloudflare'} SSR execution module.`);
|
|
274
|
-
const runtimeByPath = new Map();
|
|
275
|
-
const add = (paths, runtime)=>{
|
|
276
|
-
for (const logicalPath of paths){
|
|
277
|
-
const existing = runtimeByPath.get(logicalPath);
|
|
278
|
-
if (existing && existing !== runtime) throw new Error(`[ultramodern-release-envelope] artifact "${logicalPath}" cannot carry conflicting runtimes "${existing}" and "${runtime}".`);
|
|
279
|
-
runtimeByPath.set(logicalPath, runtime);
|
|
280
|
-
}
|
|
281
|
-
};
|
|
282
|
-
add(uiClientPaths, 'browser');
|
|
283
|
-
add(ssrPaths, 'node' === target ? 'nodejs' : 'workerd');
|
|
284
|
-
add(apiBackendPaths, 'node' === target ? 'nodejs' : 'workerd-effect');
|
|
285
|
-
add([
|
|
286
|
-
universal_namespaceObject.BACKEND_FEDERATION_MANIFEST_FILE
|
|
287
|
-
], 'module-federation-manifest');
|
|
288
|
-
add([
|
|
289
|
-
universal_namespaceObject.BACKEND_FEDERATION_REMOTE_ENTRY_FILE
|
|
290
|
-
], 'node' === target ? 'nodejs' : 'commonjs-module');
|
|
291
|
-
const surfaces = {
|
|
292
|
-
uiClient: [
|
|
293
|
-
...uiClientPaths
|
|
294
|
-
].sort((left, right)=>left.localeCompare(right)),
|
|
295
|
-
ssr: [
|
|
296
|
-
...ssrPaths
|
|
297
|
-
].sort((left, right)=>left.localeCompare(right)),
|
|
298
|
-
apiBackend: [
|
|
299
|
-
...apiBackendPaths
|
|
300
|
-
].sort((left, right)=>left.localeCompare(right)),
|
|
301
|
-
backendFederation: {
|
|
302
|
-
manifest: universal_namespaceObject.BACKEND_FEDERATION_MANIFEST_FILE,
|
|
303
|
-
container: universal_namespaceObject.BACKEND_FEDERATION_REMOTE_ENTRY_FILE
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
const artifacts = [
|
|
307
|
-
...runtimeByPath
|
|
308
|
-
].map(([logicalPath, runtime])=>releaseArtifact(logicalPath, runtime)).sort((left, right)=>left.logicalPath.localeCompare(right.logicalPath));
|
|
309
|
-
const identityCarrierMetadata = await writeReleaseIdentityCarrierMetadata(distDirectory, identity, {
|
|
310
|
-
apiBackend: apiBackendPaths,
|
|
311
|
-
backendFederation: [
|
|
312
|
-
universal_namespaceObject.BACKEND_FEDERATION_MANIFEST_FILE,
|
|
313
|
-
universal_namespaceObject.BACKEND_FEDERATION_REMOTE_ENTRY_FILE
|
|
314
|
-
],
|
|
315
|
-
ssr: [
|
|
316
|
-
...new Set([
|
|
317
|
-
...ssrExecutionPaths,
|
|
318
|
-
...ssrPaths
|
|
319
|
-
])
|
|
320
|
-
],
|
|
321
|
-
uiClient: uiClientPaths.filter((logicalPath)=>COMPILED_MODULE_PATTERN.test(logicalPath))
|
|
322
|
-
});
|
|
323
|
-
return {
|
|
324
|
-
artifacts: [
|
|
325
|
-
...artifacts,
|
|
326
|
-
identityCarrierMetadata
|
|
327
|
-
].sort((left, right)=>left.logicalPath.localeCompare(right.logicalPath)),
|
|
328
|
-
surfaces
|
|
329
|
-
};
|
|
330
|
-
};
|
|
331
|
-
const pathExists = async (filePath)=>{
|
|
332
|
-
try {
|
|
333
|
-
await promises_default().access(filePath);
|
|
334
|
-
return true;
|
|
335
|
-
} catch {
|
|
336
|
-
return false;
|
|
337
|
-
}
|
|
338
|
-
};
|
|
339
|
-
const emitFrameworkMicroVerticalReleaseEnvelope = async ({ apiOnly, distDirectory, target })=>{
|
|
340
|
-
if (apiOnly) return;
|
|
341
|
-
const backendManifestPath = external_node_path_default().join(distDirectory, universal_namespaceObject.BACKEND_FEDERATION_MANIFEST_FILE);
|
|
342
|
-
const backendContainerPath = external_node_path_default().join(distDirectory, universal_namespaceObject.BACKEND_FEDERATION_REMOTE_ENTRY_FILE);
|
|
343
|
-
const [hasBackendManifest, hasBackendContainer] = await Promise.all([
|
|
344
|
-
pathExists(backendManifestPath),
|
|
345
|
-
pathExists(backendContainerPath)
|
|
346
|
-
]);
|
|
347
|
-
if (!hasBackendManifest && !hasBackendContainer) return;
|
|
348
|
-
if (!hasBackendManifest || !hasBackendContainer) throw new Error('[ultramodern-release-envelope] full-stack MicroVertical backend federation manifest and container must be emitted together.');
|
|
349
|
-
const buildArtifact = await readBuildArtifact(distDirectory);
|
|
350
|
-
const identity = {
|
|
351
|
-
unitId: buildArtifact.deliveryUnit.unitId,
|
|
352
|
-
buildMarker: buildArtifact.deliveryUnit.buildMarker,
|
|
353
|
-
sourceRevision: buildArtifact.deliveryUnit.sourceRevision,
|
|
354
|
-
releaseVersion: buildArtifact.deliveryUnit.version
|
|
355
|
-
};
|
|
356
|
-
await readBackendManifest(distDirectory, identity);
|
|
357
|
-
const { artifacts, surfaces } = await createReleaseArtifactInputs(distDirectory, identity, target);
|
|
358
|
-
const envelope = await (0, external_index_js_namespaceObject.createMicroVerticalReleaseEnvelope)({
|
|
359
|
-
artifactRoot: distDirectory,
|
|
360
|
-
target,
|
|
361
|
-
identity,
|
|
362
|
-
artifacts,
|
|
363
|
-
surfaces
|
|
364
|
-
});
|
|
365
|
-
await writeReleaseEnvelope(distDirectory, envelope);
|
|
366
|
-
return envelope;
|
|
367
|
-
};
|
|
368
|
-
const readFrameworkMicroVerticalReleaseEnvelope = async ({ artifactRoot, expectedTarget, logicalPathForArtifact, required = false })=>{
|
|
369
|
-
const envelopePath = await resolveSafeReleaseEnvelopePath({
|
|
370
|
-
artifactRoot,
|
|
371
|
-
createDirectory: false
|
|
372
|
-
});
|
|
373
|
-
if (!envelopePath) {
|
|
374
|
-
if (required) throw new Error(`[ultramodern-release-envelope] required envelope is missing at ${MICROVERTICAL_RELEASE_ENVELOPE_PATH}.`);
|
|
375
|
-
return;
|
|
376
|
-
}
|
|
377
|
-
return (0, external_index_js_namespaceObject.verifyMicroVerticalReleaseEnvelope)(await readJson(envelopePath), {
|
|
378
|
-
artifactRoot,
|
|
379
|
-
...expectedTarget ? {
|
|
380
|
-
expectedTarget
|
|
381
|
-
} : {},
|
|
382
|
-
...logicalPathForArtifact ? {
|
|
383
|
-
logicalPathForArtifact
|
|
384
|
-
} : {}
|
|
385
|
-
});
|
|
386
|
-
};
|
|
387
|
-
const verifyBuildOutputReleaseEnvelope = async (distDirectory, expectedTarget)=>{
|
|
388
|
-
const [hasEnvelope, hasBuildArtifact, hasBackendManifest, hasBackendEntry] = await Promise.all([
|
|
389
|
-
pathExists(external_node_path_default().join(distDirectory, MICROVERTICAL_RELEASE_ENVELOPE_PATH)),
|
|
390
|
-
pathExists(external_node_path_default().join(distDirectory, universal_namespaceObject.ULTRAMODERN_BUILD_ARTIFACT_FILE)),
|
|
391
|
-
pathExists(external_node_path_default().join(distDirectory, universal_namespaceObject.BACKEND_FEDERATION_MANIFEST_FILE)),
|
|
392
|
-
pathExists(external_node_path_default().join(distDirectory, universal_namespaceObject.BACKEND_FEDERATION_REMOTE_ENTRY_FILE))
|
|
393
|
-
]);
|
|
394
|
-
const isFullStackMicroVertical = hasBuildArtifact && (hasBackendManifest || hasBackendEntry);
|
|
395
|
-
return readFrameworkMicroVerticalReleaseEnvelope({
|
|
396
|
-
artifactRoot: distDirectory,
|
|
397
|
-
...expectedTarget ? {
|
|
398
|
-
expectedTarget
|
|
399
|
-
} : {},
|
|
400
|
-
required: hasEnvelope || isFullStackMicroVertical
|
|
401
|
-
});
|
|
402
|
-
};
|
|
403
|
-
const verifyNodeReleaseEnvelopeStaging = async ({ outputDirectory })=>readFrameworkMicroVerticalReleaseEnvelope({
|
|
404
|
-
artifactRoot: outputDirectory,
|
|
405
|
-
expectedTarget: 'node',
|
|
406
|
-
required: true
|
|
407
|
-
});
|
|
408
|
-
const createNodeStagedReleaseArtifactInputs = async (outputDirectory, identity)=>{
|
|
409
|
-
const files = await collectFiles(outputDirectory);
|
|
410
|
-
for (const requiredPath of [
|
|
411
|
-
'index.js',
|
|
412
|
-
'package.json',
|
|
413
|
-
universal_namespaceObject.BACKEND_FEDERATION_MANIFEST_FILE,
|
|
414
|
-
universal_namespaceObject.BACKEND_FEDERATION_REMOTE_ENTRY_FILE
|
|
415
|
-
])if (!files.includes(requiredPath)) throw new Error(`[ultramodern-release-envelope] final Node staging is missing ${requiredPath}.`);
|
|
416
|
-
const backendFederationPaths = new Set([
|
|
417
|
-
universal_namespaceObject.BACKEND_FEDERATION_MANIFEST_FILE,
|
|
418
|
-
universal_namespaceObject.BACKEND_FEDERATION_REMOTE_ENTRY_FILE
|
|
419
|
-
]);
|
|
420
|
-
const uiClientPaths = files.filter((logicalPath)=>{
|
|
421
|
-
const topLevel = logicalPath.split('/')[0];
|
|
422
|
-
return 'static' === topLevel || 'html' === topLevel || 'public' === topLevel || [
|
|
423
|
-
'index.html',
|
|
424
|
-
'mf-manifest.json',
|
|
425
|
-
'mf-stats.json',
|
|
426
|
-
'remoteEntry.js',
|
|
427
|
-
'routes-manifest.json',
|
|
428
|
-
'loadable-stats.json'
|
|
429
|
-
].includes(logicalPath);
|
|
430
|
-
});
|
|
431
|
-
const ssrPaths = files.filter((logicalPath)=>'index.js' === logicalPath || logicalPath.startsWith('bundles/') && COMPILED_MODULE_PATTERN.test(logicalPath));
|
|
432
|
-
const apiBackendPaths = files.filter((logicalPath)=>(logicalPath.startsWith('api/') || logicalPath.startsWith('shared/')) && COMPILED_MODULE_PATTERN.test(logicalPath));
|
|
433
|
-
for (const [surface, paths] of [
|
|
434
|
-
[
|
|
435
|
-
'UI/client',
|
|
436
|
-
uiClientPaths
|
|
437
|
-
],
|
|
438
|
-
[
|
|
439
|
-
'Node SSR',
|
|
440
|
-
ssrPaths
|
|
441
|
-
],
|
|
442
|
-
[
|
|
443
|
-
'Node API/backend',
|
|
444
|
-
apiBackendPaths
|
|
445
|
-
]
|
|
446
|
-
])if (0 === paths.length) throw new Error(`[ultramodern-release-envelope] final Node staging has no ${surface} artifacts.`);
|
|
447
|
-
const clientExecutionPaths = await manifestReferencedClientModules(outputDirectory, files);
|
|
448
|
-
const ssrExecutionPaths = await routeReferencedSsrModules(outputDirectory, files, 'node');
|
|
449
|
-
if (0 === clientExecutionPaths.length || 0 === ssrExecutionPaths.length) throw new Error('[ultramodern-release-envelope] final Node manifests must reference emitted UI/client and SSR execution modules.');
|
|
450
|
-
const runtimeByPath = new Map(files.filter((logicalPath)=>!backendFederationPaths.has(logicalPath)).map((logicalPath)=>[
|
|
451
|
-
logicalPath,
|
|
452
|
-
'nodejs-deployment'
|
|
453
|
-
]));
|
|
454
|
-
for (const logicalPath of uiClientPaths)runtimeByPath.set(logicalPath, 'browser');
|
|
455
|
-
for (const logicalPath of ssrPaths)runtimeByPath.set(logicalPath, 'nodejs');
|
|
456
|
-
for (const logicalPath of apiBackendPaths)runtimeByPath.set(logicalPath, 'nodejs');
|
|
457
|
-
runtimeByPath.set(universal_namespaceObject.BACKEND_FEDERATION_MANIFEST_FILE, 'module-federation-manifest');
|
|
458
|
-
runtimeByPath.set(universal_namespaceObject.BACKEND_FEDERATION_REMOTE_ENTRY_FILE, 'nodejs');
|
|
459
|
-
const identityCarrierMetadata = await writeReleaseIdentityCarrierMetadata(outputDirectory, identity, {
|
|
460
|
-
apiBackend: apiBackendPaths,
|
|
461
|
-
backendFederation: [
|
|
462
|
-
universal_namespaceObject.BACKEND_FEDERATION_MANIFEST_FILE,
|
|
463
|
-
universal_namespaceObject.BACKEND_FEDERATION_REMOTE_ENTRY_FILE
|
|
464
|
-
],
|
|
465
|
-
ssr: [
|
|
466
|
-
...new Set([
|
|
467
|
-
...ssrExecutionPaths,
|
|
468
|
-
...ssrPaths.filter((logicalPath)=>'index.js' !== logicalPath)
|
|
469
|
-
])
|
|
470
|
-
],
|
|
471
|
-
uiClient: uiClientPaths.filter((logicalPath)=>COMPILED_MODULE_PATTERN.test(logicalPath))
|
|
472
|
-
});
|
|
473
|
-
return {
|
|
474
|
-
artifacts: [
|
|
475
|
-
...[
|
|
476
|
-
...runtimeByPath
|
|
477
|
-
].map(([logicalPath, runtime])=>releaseArtifact(logicalPath, runtime)),
|
|
478
|
-
identityCarrierMetadata
|
|
479
|
-
].sort((left, right)=>left.logicalPath.localeCompare(right.logicalPath)),
|
|
480
|
-
surfaces: {
|
|
481
|
-
uiClient: [
|
|
482
|
-
...uiClientPaths
|
|
483
|
-
].sort((left, right)=>left.localeCompare(right)),
|
|
484
|
-
ssr: [
|
|
485
|
-
...ssrPaths
|
|
486
|
-
].sort((left, right)=>left.localeCompare(right)),
|
|
487
|
-
apiBackend: [
|
|
488
|
-
...apiBackendPaths
|
|
489
|
-
].sort((left, right)=>left.localeCompare(right)),
|
|
490
|
-
backendFederation: {
|
|
491
|
-
manifest: universal_namespaceObject.BACKEND_FEDERATION_MANIFEST_FILE,
|
|
492
|
-
container: universal_namespaceObject.BACKEND_FEDERATION_REMOTE_ENTRY_FILE
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
};
|
|
496
|
-
};
|
|
497
|
-
const emitNodeStagedReleaseEnvelope = async ({ distDirectory, outputDirectory })=>{
|
|
498
|
-
const source = await verifyBuildOutputReleaseEnvelope(distDirectory, 'node');
|
|
499
|
-
if (!source) return;
|
|
500
|
-
const { artifacts, surfaces } = await createNodeStagedReleaseArtifactInputs(outputDirectory, source.identity);
|
|
501
|
-
const staged = await (0, external_index_js_namespaceObject.createMicroVerticalReleaseEnvelope)({
|
|
502
|
-
artifactRoot: outputDirectory,
|
|
503
|
-
target: 'node',
|
|
504
|
-
identity: source.identity,
|
|
505
|
-
artifacts,
|
|
506
|
-
surfaces
|
|
507
|
-
});
|
|
508
|
-
await writeReleaseEnvelope(outputDirectory, staged);
|
|
509
|
-
return staged;
|
|
510
|
-
};
|
|
511
|
-
const stageCloudflareReleaseEnvelope = async ({ distDirectory, outputDirectory })=>{
|
|
512
|
-
const source = await verifyBuildOutputReleaseEnvelope(distDirectory, 'cloudflare');
|
|
513
|
-
if (!source) return;
|
|
514
|
-
const stagedEnvelopePath = external_node_path_default().join(outputDirectory, MICROVERTICAL_RELEASE_ENVELOPE_PATH);
|
|
515
|
-
if (await pathExists(stagedEnvelopePath)) throw new Error('[ultramodern-release-envelope] Cloudflare staging contains a stale envelope before final output generation.');
|
|
516
|
-
return source;
|
|
517
|
-
};
|
|
518
|
-
const createCloudflareStagedReleaseArtifactInputs = async (outputDirectory, identity)=>{
|
|
519
|
-
const files = await collectFiles(outputDirectory);
|
|
520
|
-
for (const requiredPath of [
|
|
521
|
-
'server/index.mjs',
|
|
522
|
-
'server/modern-worker-manifest.json',
|
|
523
|
-
'wrangler.json',
|
|
524
|
-
'package.json',
|
|
525
|
-
'worker/package.json'
|
|
526
|
-
])if (!files.includes(requiredPath)) throw new Error(`[ultramodern-release-envelope] final Cloudflare staging is missing ${requiredPath}.`);
|
|
527
|
-
if (files.some((logicalPath)=>'public/release' === logicalPath || logicalPath.startsWith('public/release/'))) throw new Error('[ultramodern-release-envelope] final Cloudflare envelope must remain private and cannot be staged under public/release.');
|
|
528
|
-
const backendManifestPath = `public/${universal_namespaceObject.BACKEND_FEDERATION_MANIFEST_FILE}`;
|
|
529
|
-
const backendContainerPath = `public/${universal_namespaceObject.BACKEND_FEDERATION_REMOTE_ENTRY_FILE}`;
|
|
530
|
-
const apiBackendPaths = files.filter((logicalPath)=>EFFECT_BFF_WORKER_PATTERN.test(logicalPath));
|
|
531
|
-
const ssrPaths = files.filter((logicalPath)=>(logicalPath.startsWith('server/') || logicalPath.startsWith('worker/')) && COMPILED_MODULE_PATTERN.test(logicalPath) && !EFFECT_BFF_WORKER_PATTERN.test(logicalPath));
|
|
532
|
-
const uiClientPaths = files.filter((logicalPath)=>logicalPath.startsWith('public/') && logicalPath !== backendManifestPath && logicalPath !== backendContainerPath);
|
|
533
|
-
for (const [surface, paths] of [
|
|
534
|
-
[
|
|
535
|
-
'UI/client',
|
|
536
|
-
uiClientPaths
|
|
537
|
-
],
|
|
538
|
-
[
|
|
539
|
-
'Cloudflare SSR',
|
|
540
|
-
ssrPaths
|
|
541
|
-
],
|
|
542
|
-
[
|
|
543
|
-
'Cloudflare API/backend',
|
|
544
|
-
apiBackendPaths
|
|
545
|
-
]
|
|
546
|
-
])if (0 === paths.length) throw new Error(`[ultramodern-release-envelope] final Cloudflare staging has no ${surface} artifacts.`);
|
|
547
|
-
for (const logicalPath of [
|
|
548
|
-
backendManifestPath,
|
|
549
|
-
backendContainerPath
|
|
550
|
-
])if (!files.includes(logicalPath)) throw new Error(`[ultramodern-release-envelope] final Cloudflare staging is missing ${logicalPath}.`);
|
|
551
|
-
const clientExecutionPaths = await manifestReferencedClientModules(outputDirectory, files, 'public/mf-manifest.json');
|
|
552
|
-
const ssrExecutionPaths = await routeReferencedSsrModules(outputDirectory, files, 'cloudflare', 'server/route.json');
|
|
553
|
-
if (0 === clientExecutionPaths.length || 0 === ssrExecutionPaths.length) throw new Error('[ultramodern-release-envelope] final Cloudflare manifests must reference emitted UI/client and SSR execution modules.');
|
|
554
|
-
const runtimeByPath = new Map();
|
|
555
|
-
for (const logicalPath of files)runtimeByPath.set(logicalPath, 'cloudflare-deployment');
|
|
556
|
-
const add = (paths, runtime)=>{
|
|
557
|
-
for (const logicalPath of paths)runtimeByPath.set(logicalPath, runtime);
|
|
558
|
-
};
|
|
559
|
-
add(uiClientPaths, 'browser');
|
|
560
|
-
add(ssrPaths, 'workerd');
|
|
561
|
-
add(apiBackendPaths, 'workerd-effect');
|
|
562
|
-
add([
|
|
563
|
-
backendManifestPath
|
|
564
|
-
], 'module-federation-manifest');
|
|
565
|
-
add([
|
|
566
|
-
backendContainerPath
|
|
567
|
-
], 'commonjs-module');
|
|
568
|
-
const identityCarrierMetadata = await writeReleaseIdentityCarrierMetadata(outputDirectory, identity, {
|
|
569
|
-
apiBackend: apiBackendPaths,
|
|
570
|
-
backendFederation: [
|
|
571
|
-
backendManifestPath,
|
|
572
|
-
backendContainerPath
|
|
573
|
-
],
|
|
574
|
-
ssr: [
|
|
575
|
-
...new Set([
|
|
576
|
-
...ssrExecutionPaths,
|
|
577
|
-
...ssrPaths.filter((logicalPath)=>logicalPath.startsWith('worker/'))
|
|
578
|
-
])
|
|
579
|
-
],
|
|
580
|
-
uiClient: uiClientPaths.filter((logicalPath)=>COMPILED_MODULE_PATTERN.test(logicalPath))
|
|
581
|
-
});
|
|
582
|
-
return {
|
|
583
|
-
artifacts: [
|
|
584
|
-
...[
|
|
585
|
-
...runtimeByPath
|
|
586
|
-
].map(([logicalPath, runtime])=>releaseArtifact(logicalPath, runtime)),
|
|
587
|
-
identityCarrierMetadata
|
|
588
|
-
].sort((left, right)=>left.logicalPath.localeCompare(right.logicalPath)),
|
|
589
|
-
surfaces: {
|
|
590
|
-
uiClient: [
|
|
591
|
-
...uiClientPaths
|
|
592
|
-
].sort((left, right)=>left.localeCompare(right)),
|
|
593
|
-
ssr: [
|
|
594
|
-
...ssrPaths
|
|
595
|
-
].sort((left, right)=>left.localeCompare(right)),
|
|
596
|
-
apiBackend: [
|
|
597
|
-
...apiBackendPaths
|
|
598
|
-
].sort((left, right)=>left.localeCompare(right)),
|
|
599
|
-
backendFederation: {
|
|
600
|
-
manifest: backendManifestPath,
|
|
601
|
-
container: backendContainerPath
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
|
-
};
|
|
605
|
-
};
|
|
606
|
-
const emitCloudflareStagedReleaseEnvelope = async ({ distDirectory, outputDirectory })=>{
|
|
607
|
-
const source = await verifyBuildOutputReleaseEnvelope(distDirectory, 'cloudflare');
|
|
608
|
-
if (!source) return;
|
|
609
|
-
const { artifacts, surfaces } = await createCloudflareStagedReleaseArtifactInputs(outputDirectory, source.identity);
|
|
610
|
-
const staged = await (0, external_index_js_namespaceObject.createMicroVerticalReleaseEnvelope)({
|
|
611
|
-
artifactRoot: outputDirectory,
|
|
612
|
-
target: 'cloudflare',
|
|
613
|
-
identity: source.identity,
|
|
614
|
-
artifacts,
|
|
615
|
-
surfaces
|
|
616
|
-
});
|
|
617
|
-
await writeReleaseEnvelope(outputDirectory, staged);
|
|
618
|
-
return staged;
|
|
619
|
-
};
|
|
620
|
-
const verifyCloudflareReleaseEnvelopeStaging = async (outputDirectory)=>readFrameworkMicroVerticalReleaseEnvelope({
|
|
621
|
-
artifactRoot: outputDirectory,
|
|
622
|
-
expectedTarget: 'cloudflare',
|
|
623
|
-
required: true
|
|
624
|
-
});
|
|
625
|
-
exports.MICROVERTICAL_RELEASE_ENVELOPE_PATH = __webpack_exports__.MICROVERTICAL_RELEASE_ENVELOPE_PATH;
|
|
626
|
-
exports.MICROVERTICAL_RELEASE_IDENTITY_CARRIERS_PATH = __webpack_exports__.MICROVERTICAL_RELEASE_IDENTITY_CARRIERS_PATH;
|
|
627
|
-
exports.emitCloudflareStagedReleaseEnvelope = __webpack_exports__.emitCloudflareStagedReleaseEnvelope;
|
|
628
|
-
exports.emitFrameworkMicroVerticalReleaseEnvelope = __webpack_exports__.emitFrameworkMicroVerticalReleaseEnvelope;
|
|
629
|
-
exports.emitNodeStagedReleaseEnvelope = __webpack_exports__.emitNodeStagedReleaseEnvelope;
|
|
630
|
-
exports.readFrameworkMicroVerticalReleaseEnvelope = __webpack_exports__.readFrameworkMicroVerticalReleaseEnvelope;
|
|
631
|
-
exports.stageCloudflareReleaseEnvelope = __webpack_exports__.stageCloudflareReleaseEnvelope;
|
|
632
|
-
exports.verifyBuildOutputReleaseEnvelope = __webpack_exports__.verifyBuildOutputReleaseEnvelope;
|
|
633
|
-
exports.verifyCloudflareReleaseEnvelopeStaging = __webpack_exports__.verifyCloudflareReleaseEnvelopeStaging;
|
|
634
|
-
exports.verifyNodeReleaseEnvelopeStaging = __webpack_exports__.verifyNodeReleaseEnvelopeStaging;
|
|
635
|
-
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
636
|
-
"MICROVERTICAL_RELEASE_ENVELOPE_PATH",
|
|
637
|
-
"MICROVERTICAL_RELEASE_IDENTITY_CARRIERS_PATH",
|
|
638
|
-
"emitCloudflareStagedReleaseEnvelope",
|
|
639
|
-
"emitFrameworkMicroVerticalReleaseEnvelope",
|
|
640
|
-
"emitNodeStagedReleaseEnvelope",
|
|
641
|
-
"readFrameworkMicroVerticalReleaseEnvelope",
|
|
642
|
-
"stageCloudflareReleaseEnvelope",
|
|
643
|
-
"verifyBuildOutputReleaseEnvelope",
|
|
644
|
-
"verifyCloudflareReleaseEnvelopeStaging",
|
|
645
|
-
"verifyNodeReleaseEnvelopeStaging"
|
|
646
|
-
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
647
|
-
Object.defineProperty(exports, '__esModule', {
|
|
648
|
-
value: true
|
|
649
|
-
});
|