@bleedingdev/modern-js-app-tools 3.5.0-ultramodern.30 → 3.5.0-ultramodern.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/cjs/plugins/backend-federation/codegen.js +208 -0
  2. package/dist/cjs/plugins/backend-federation/config.js +217 -0
  3. package/dist/cjs/plugins/backend-federation/emit.js +139 -0
  4. package/dist/cjs/plugins/backendFederationBuild.js +4 -298
  5. package/dist/cjs/plugins/deploy/platforms/cloudflare/artifacts.js +127 -0
  6. package/dist/cjs/plugins/deploy/platforms/cloudflare/constants.js +137 -0
  7. package/dist/cjs/plugins/deploy/platforms/cloudflare/delivery-unit.js +118 -0
  8. package/dist/cjs/plugins/deploy/platforms/cloudflare/i18n-worker.js +135 -0
  9. package/dist/cjs/plugins/deploy/platforms/cloudflare/index.js +126 -0
  10. package/dist/cjs/plugins/deploy/platforms/cloudflare/security-policies.js +223 -0
  11. package/dist/cjs/plugins/deploy/platforms/cloudflare/types.js +18 -0
  12. package/dist/cjs/plugins/deploy/platforms/cloudflare/utils.js +66 -0
  13. package/dist/cjs/plugins/deploy/platforms/cloudflare/worker-manifest.js +178 -0
  14. package/dist/cjs/plugins/deploy/platforms/cloudflare/wrangler-config.js +189 -0
  15. package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/identity.js +83 -0
  16. package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/index.js +184 -0
  17. package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/issues.js +54 -0
  18. package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/manifest.js +83 -0
  19. package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/mutation-policy.js +158 -0
  20. package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier/worker-bundles.js +137 -0
  21. package/dist/cjs/plugins/deploy/platforms/cloudflare-output-verifier.js +23 -363
  22. package/dist/cjs/plugins/deploy/platforms/cloudflare.js +2 -745
  23. package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.001-bootstrap-security.mjs +22 -0
  24. package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.002-assets-routes.mjs +0 -0
  25. package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.003-i18n-locales.mjs +0 -0
  26. package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.004-rendering-css.mjs +0 -0
  27. package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.005-worker-dispatch.mjs +0 -0
  28. package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.006-fetch-handler.mjs +32 -0
  29. package/dist/esm/plugins/backend-federation/codegen.mjs +157 -0
  30. package/dist/esm/plugins/backend-federation/config.mjs +141 -0
  31. package/dist/esm/plugins/backend-federation/emit.mjs +88 -0
  32. package/dist/esm/plugins/backendFederationBuild.mjs +1 -296
  33. package/dist/esm/plugins/deploy/platforms/cloudflare/artifacts.mjs +64 -0
  34. package/dist/esm/plugins/deploy/platforms/cloudflare/constants.mjs +33 -0
  35. package/dist/esm/plugins/deploy/platforms/cloudflare/delivery-unit.mjs +67 -0
  36. package/dist/esm/plugins/deploy/platforms/cloudflare/i18n-worker.mjs +97 -0
  37. package/dist/esm/plugins/deploy/platforms/cloudflare/index.mjs +78 -0
  38. package/dist/esm/plugins/deploy/platforms/cloudflare/security-policies.mjs +167 -0
  39. package/dist/esm/plugins/deploy/platforms/cloudflare/types.mjs +0 -0
  40. package/dist/esm/plugins/deploy/platforms/cloudflare/utils.mjs +12 -0
  41. package/dist/esm/plugins/deploy/platforms/cloudflare/worker-manifest.mjs +118 -0
  42. package/dist/esm/plugins/deploy/platforms/cloudflare/wrangler-config.mjs +135 -0
  43. package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/identity.mjs +45 -0
  44. package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/index.mjs +129 -0
  45. package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/issues.mjs +10 -0
  46. package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/manifest.mjs +45 -0
  47. package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/mutation-policy.mjs +97 -0
  48. package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier/worker-bundles.mjs +68 -0
  49. package/dist/esm/plugins/deploy/platforms/cloudflare-output-verifier.mjs +1 -347
  50. package/dist/esm/plugins/deploy/platforms/cloudflare.mjs +1 -735
  51. package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.001-bootstrap-security.mjs +22 -0
  52. package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.002-assets-routes.mjs +0 -0
  53. package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.003-i18n-locales.mjs +0 -0
  54. package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.004-rendering-css.mjs +0 -0
  55. package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.005-worker-dispatch.mjs +0 -0
  56. package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.006-fetch-handler.mjs +32 -0
  57. package/dist/esm-node/plugins/backend-federation/codegen.mjs +158 -0
  58. package/dist/esm-node/plugins/backend-federation/config.mjs +142 -0
  59. package/dist/esm-node/plugins/backend-federation/emit.mjs +89 -0
  60. package/dist/esm-node/plugins/backendFederationBuild.mjs +1 -296
  61. package/dist/esm-node/plugins/deploy/platforms/cloudflare/artifacts.mjs +65 -0
  62. package/dist/esm-node/plugins/deploy/platforms/cloudflare/constants.mjs +34 -0
  63. package/dist/esm-node/plugins/deploy/platforms/cloudflare/delivery-unit.mjs +68 -0
  64. package/dist/esm-node/plugins/deploy/platforms/cloudflare/i18n-worker.mjs +98 -0
  65. package/dist/esm-node/plugins/deploy/platforms/cloudflare/index.mjs +79 -0
  66. package/dist/esm-node/plugins/deploy/platforms/cloudflare/security-policies.mjs +168 -0
  67. package/dist/esm-node/plugins/deploy/platforms/cloudflare/types.mjs +1 -0
  68. package/dist/esm-node/plugins/deploy/platforms/cloudflare/utils.mjs +13 -0
  69. package/dist/esm-node/plugins/deploy/platforms/cloudflare/worker-manifest.mjs +119 -0
  70. package/dist/esm-node/plugins/deploy/platforms/cloudflare/wrangler-config.mjs +136 -0
  71. package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/identity.mjs +46 -0
  72. package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/index.mjs +130 -0
  73. package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/issues.mjs +11 -0
  74. package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/manifest.mjs +46 -0
  75. package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/mutation-policy.mjs +98 -0
  76. package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier/worker-bundles.mjs +69 -0
  77. package/dist/esm-node/plugins/deploy/platforms/cloudflare-output-verifier.mjs +1 -347
  78. package/dist/esm-node/plugins/deploy/platforms/cloudflare.mjs +1 -735
  79. package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.001-bootstrap-security.mjs +22 -0
  80. package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.002-assets-routes.mjs +0 -0
  81. package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.003-i18n-locales.mjs +0 -0
  82. package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.004-rendering-css.mjs +0 -0
  83. package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.005-worker-dispatch.mjs +0 -0
  84. package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.006-fetch-handler.mjs +32 -0
  85. package/dist/types/plugins/backend-federation/codegen.d.ts +82 -0
  86. package/dist/types/plugins/backend-federation/config.d.ts +103 -0
  87. package/dist/types/plugins/backend-federation/emit.d.ts +13 -0
  88. package/dist/types/plugins/backendFederationBuild.d.ts +2 -11
  89. package/dist/types/plugins/deploy/platforms/cloudflare/artifacts.d.ts +15 -0
  90. package/dist/types/plugins/deploy/platforms/cloudflare/constants.d.ts +23 -0
  91. package/dist/types/plugins/deploy/platforms/cloudflare/delivery-unit.d.ts +23 -0
  92. package/dist/types/plugins/deploy/platforms/cloudflare/i18n-worker.d.ts +21 -0
  93. package/dist/types/plugins/deploy/platforms/cloudflare/index.d.ts +2 -0
  94. package/dist/types/plugins/deploy/platforms/cloudflare/security-policies.d.ts +88 -0
  95. package/dist/types/plugins/deploy/platforms/cloudflare/types.d.ts +5 -0
  96. package/dist/types/plugins/deploy/platforms/cloudflare/utils.d.ts +6 -0
  97. package/dist/types/plugins/deploy/platforms/cloudflare/worker-manifest.d.ts +100 -0
  98. package/dist/types/plugins/deploy/platforms/cloudflare/wrangler-config.d.ts +39 -0
  99. package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/identity.d.ts +4 -0
  100. package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/index.d.ts +18 -0
  101. package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/issues.d.ts +14 -0
  102. package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/manifest.d.ts +2 -0
  103. package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/mutation-policy.d.ts +13 -0
  104. package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier/worker-bundles.d.ts +16 -0
  105. package/dist/types/plugins/deploy/platforms/cloudflare-output-verifier.d.ts +1 -32
  106. package/dist/types/plugins/deploy/platforms/cloudflare.d.ts +1 -2
  107. package/dist/types/plugins/deploy/platforms/templates/cloudflare-entry.001-bootstrap-security.d.mts +1 -0
  108. package/dist/types/plugins/deploy/platforms/templates/cloudflare-entry.002-assets-routes.d.mts +1 -0
  109. package/dist/types/plugins/deploy/platforms/templates/cloudflare-entry.003-i18n-locales.d.mts +1 -0
  110. package/dist/types/plugins/deploy/platforms/templates/cloudflare-entry.004-rendering-css.d.mts +1 -0
  111. package/dist/types/plugins/deploy/platforms/templates/cloudflare-entry.005-worker-dispatch.d.mts +1 -0
  112. package/package.json +11 -11
  113. package/dist/cjs/plugins/deploy/platforms/templates/cloudflare-entry.mjs +0 -879
  114. package/dist/esm/plugins/deploy/platforms/templates/cloudflare-entry.mjs +0 -879
  115. package/dist/esm-node/plugins/deploy/platforms/templates/cloudflare-entry.mjs +0 -879
  116. /package/dist/types/plugins/deploy/platforms/templates/{cloudflare-entry.d.mts → cloudflare-entry.006-fetch-handler.d.mts} +0 -0
@@ -37,305 +37,11 @@ var __webpack_require__ = {};
37
37
  var __webpack_exports__ = {};
38
38
  __webpack_require__.r(__webpack_exports__);
39
39
  __webpack_require__.d(__webpack_exports__, {
40
- default: ()=>backendFederationBuild,
41
- emitBackendFederationArtifacts: ()=>emitBackendFederationArtifacts
40
+ default: ()=>emit_js_default(),
41
+ emitBackendFederationArtifacts: ()=>emit_js_namespaceObject.emitBackendFederationArtifacts
42
42
  });
43
- const external_node_fs_namespaceObject = require("node:fs");
44
- const promises_namespaceObject = require("node:fs/promises");
45
- var promises_default = /*#__PURE__*/ __webpack_require__.n(promises_namespaceObject);
46
- const external_node_path_namespaceObject = require("node:path");
47
- var external_node_path_default = /*#__PURE__*/ __webpack_require__.n(external_node_path_namespaceObject);
48
- const COMPACT_CONFIG_PATH = '.modernjs/ultramodern.json';
49
- const BACKEND_MANIFEST_FILE = 'backend-mf-manifest.json';
50
- const BACKEND_REMOTE_ENTRY_FILE = 'backendRemoteEntry.mjs';
51
- const CONTRACT_VERSION = 'microvertical-server-effect-v1';
52
- const NODE_ADAPTER_VERSION = 'backend-mf-effect-v1';
53
- const BACKEND_EXPOSE = './effect-api';
54
- const normalizeRelativePath = (value)=>value.replace(/\\/gu, '/').replace(/^\.\/+/u, '');
55
- const isRecord = (value)=>'object' == typeof value && null !== value;
56
- const readJsonFile = async (filePath)=>JSON.parse(await promises_default().readFile(filePath, 'utf8'));
57
- const buildModulePathFor = (appDirectory)=>external_node_path_default().join(appDirectory, 'shared/ultramodern-build.ts');
58
- const readBuildIdentity = async (appDirectory)=>{
59
- const buildModulePath = buildModulePathFor(appDirectory);
60
- if (!(0, external_node_fs_namespaceObject.existsSync)(buildModulePath)) return {};
61
- const source = await promises_default().readFile(buildModulePath, 'utf8');
62
- return {
63
- buildVersion: source.match(/\bbuild:\s*['"]([^'"]+)['"]/u)?.[1],
64
- packageName: source.match(/\bpackageName:\s*['"]([^'"]+)['"]/u)?.[1],
65
- version: source.match(/\bversion:\s*['"]([^'"]+)['"]/u)?.[1],
66
- unitId: source.match(/\bunitId:\s*['"]([^'"]+)['"]/u)?.[1],
67
- sourceRevision: source.match(/\bsourceRevision:\s*['"]([^'"]+)['"]/u)?.[1]
68
- };
69
- };
70
- const toPascalCase = (value)=>value.split(/[^a-zA-Z0-9]+/u).filter(Boolean).map((part)=>part.charAt(0).toUpperCase() + part.slice(1)).join('');
71
- const stringValue = (value)=>'string' == typeof value && value.length > 0 ? value : void 0;
72
- const createBackendName = (app, id)=>{
73
- const configuredName = stringValue(app.backendFederation?.name) ?? stringValue(app.backendFederation?.executionSurfaces?.node?.remoteName) ?? stringValue(app.serverExecution?.node?.remoteName);
74
- if (configuredName) return configuredName;
75
- const mfName = stringValue(app.moduleFederation?.name);
76
- return mfName ? `${mfName}Backend` : `vertical${toPascalCase(id)}Backend`;
77
- };
78
- const findWorkspaceRoot = (appDirectory)=>{
79
- let current = appDirectory;
80
- while(true){
81
- if ((0, external_node_fs_namespaceObject.existsSync)(external_node_path_default().join(current, COMPACT_CONFIG_PATH))) return current;
82
- const parent = external_node_path_default().dirname(current);
83
- if (parent === current) return;
84
- current = parent;
85
- }
86
- };
87
- const createAppFromCompactMetadata = (workspaceRoot, appDirectory, compactApp)=>{
88
- const id = stringValue(compactApp.id);
89
- const appPath = stringValue(compactApp.path);
90
- if (!id || 'vertical' !== compactApp.kind || !isRecord(compactApp.api)) return;
91
- const directory = appPath ? normalizeRelativePath(appPath) : `verticals/${id}`;
92
- if (external_node_path_default().resolve(workspaceRoot, directory) !== external_node_path_default().resolve(appDirectory)) return;
93
- const port = 'number' == typeof compactApp.port ? compactApp.port : void 0;
94
- if (void 0 === port) return;
95
- const apiPrefix = stringValue(compactApp.api.prefix) ?? `/${id}-api`;
96
- const apiStem = stringValue(compactApp.api.stem) ?? id;
97
- const backendName = createBackendName(compactApp, id);
98
- const manifestUrl = stringValue(compactApp.backendFederation?.executionSurfaces?.node?.manifestUrl) ?? stringValue(compactApp.serverExecution?.node?.manifestUrl) ?? `http://localhost:${port}/${BACKEND_MANIFEST_FILE}`;
99
- const containerEntry = stringValue(compactApp.backendFederation?.executionSurfaces?.node?.containerEntry) ?? stringValue(compactApp.serverExecution?.node?.containerEntry) ?? `http://localhost:${port}/${BACKEND_REMOTE_ENTRY_FILE}`;
100
- const remoteType = stringValue(compactApp.backendFederation?.executionSurfaces?.node?.remoteType) ?? stringValue(compactApp.serverExecution?.node?.remoteType) ?? 'module';
101
- const packageName = stringValue(compactApp.package);
102
- const uiManifestUrl = stringValue(compactApp.backendFederation?.versionBoundary?.ui?.manifestUrl) ?? stringValue(compactApp.moduleFederation?.manifestUrl);
103
- const compactDeliveryUnit = isRecord(compactApp.deliveryUnit) ? {
104
- unitId: stringValue(compactApp.deliveryUnit.unitId),
105
- buildMarker: stringValue(compactApp.deliveryUnit.buildMarker),
106
- sourceRevision: stringValue(compactApp.deliveryUnit.sourceRevision),
107
- packageName: stringValue(compactApp.deliveryUnit.packageName),
108
- version: stringValue(compactApp.deliveryUnit.version)
109
- } : void 0;
110
- return {
111
- id,
112
- directory,
113
- packageName,
114
- port,
115
- apiPrefix,
116
- apiStem,
117
- backendName,
118
- manifestUrl,
119
- containerEntry,
120
- remoteType,
121
- uiManifestUrl,
122
- compactDeliveryUnit
123
- };
124
- };
125
- const findBackendFederationApp = async (workspaceRoot, appDirectory)=>{
126
- const compactConfigPath = external_node_path_default().join(workspaceRoot, COMPACT_CONFIG_PATH);
127
- const compactConfig = await readJsonFile(compactConfigPath);
128
- const apps = Array.isArray(compactConfig.topology?.apps) ? compactConfig.topology.apps : [];
129
- for (const app of apps){
130
- const resolved = createAppFromCompactMetadata(workspaceRoot, appDirectory, app);
131
- if (resolved) return resolved;
132
- }
133
- };
134
- const createRelativeImportSpecifier = (fromDirectory, toFile)=>{
135
- const relativePath = normalizeRelativePath(external_node_path_default().relative(fromDirectory, toFile));
136
- return relativePath.startsWith('.') ? relativePath : `./${relativePath}`;
137
- };
138
- const createBackendRemoteEntrySource = (workspaceRoot, app, effectApiPath, entryPath)=>{
139
- const effectApiSpecifier = createRelativeImportSpecifier(external_node_path_default().dirname(entryPath), effectApiPath);
140
- return `// Generated by Modern.js backend federation build.
141
- const exposedModules = {
142
- ${JSON.stringify(BACKEND_EXPOSE)}: () =>
143
- import(new URL(${JSON.stringify(effectApiSpecifier)}, import.meta.url).href),
144
- };
145
-
146
- export const __modernjsBackendFederation = ${JSON.stringify({
147
- buildVersion: app.buildVersion,
148
- expose: BACKEND_EXPOSE,
149
- name: app.backendName,
150
- packageName: app.packageName,
151
- remoteType: app.remoteType,
152
- source: normalizeRelativePath(external_node_path_default().relative(workspaceRoot, effectApiPath)),
153
- version: app.version,
154
- ...app.unitId ? {
155
- unitId: app.unitId
156
- } : {},
157
- ...app.sourceRevision ? {
158
- sourceRevision: app.sourceRevision
159
- } : {}
160
- }, null, 2)};
161
-
162
- export function init() {}
163
-
164
- export function get(id) {
165
- const load = exposedModules[id];
166
- if (!load) {
167
- throw new Error(\`Unexpected backend federation expose: \${id}\`);
168
- }
169
-
170
- return async () => load();
171
- }
172
-
173
- export default { get, init };
174
- `;
175
- };
176
- const createBackendManifest = (workspaceRoot, distDirectory, app)=>{
177
- const sourceModule = `${app.directory}/api/effect-api.ts`;
178
- const publicPath = `http://localhost:${app.port}/`;
179
- return {
180
- schemaVersion: 1,
181
- id: app.backendName,
182
- name: app.backendName,
183
- version: app.version,
184
- buildVersion: app.buildVersion,
185
- metaData: {
186
- name: app.backendName,
187
- type: 'backend',
188
- buildInfo: {
189
- buildVersion: app.buildVersion,
190
- buildName: app.packageName
191
- },
192
- remoteEntry: {
193
- name: BACKEND_REMOTE_ENTRY_FILE,
194
- path: '',
195
- type: app.remoteType
196
- },
197
- globalName: app.backendName,
198
- publicPath,
199
- ssrRemoteEntry: {
200
- name: BACKEND_REMOTE_ENTRY_FILE,
201
- path: '',
202
- type: app.remoteType
203
- },
204
- ssrPublicPath: publicPath
205
- },
206
- entry: {
207
- file: BACKEND_REMOTE_ENTRY_FILE,
208
- path: normalizeRelativePath(external_node_path_default().relative(workspaceRoot, external_node_path_default().join(distDirectory, BACKEND_REMOTE_ENTRY_FILE))),
209
- type: app.remoteType,
210
- url: app.containerEntry
211
- },
212
- exposes: [
213
- {
214
- id: `${app.backendName}:${BACKEND_EXPOSE}`,
215
- name: BACKEND_EXPOSE,
216
- path: '',
217
- assets: {
218
- js: {
219
- async: [],
220
- sync: [
221
- BACKEND_REMOTE_ENTRY_FILE
222
- ]
223
- },
224
- css: {
225
- async: [],
226
- sync: []
227
- }
228
- }
229
- }
230
- ],
231
- shared: [],
232
- backendFederation: {
233
- role: 'microvertical-server',
234
- name: app.backendName,
235
- runtimeFramework: 'effect',
236
- strictEffectApproach: true,
237
- contractVersion: CONTRACT_VERSION,
238
- nodeAdapterVersion: NODE_ADAPTER_VERSION,
239
- remoteType: app.remoteType,
240
- expose: BACKEND_EXPOSE,
241
- manifestUrl: app.manifestUrl,
242
- containerEntry: app.containerEntry,
243
- source: {
244
- module: sourceModule
245
- },
246
- readinessPath: `${app.apiPrefix}/${app.apiStem}/readiness`,
247
- openapiPath: `${app.apiPrefix}/openapi.json`,
248
- ...app.unitId && app.buildVersion ? {
249
- deliveryUnit: {
250
- schemaVersion: 1,
251
- kind: 'microvertical-delivery-unit',
252
- unitId: app.unitId,
253
- packageName: app.packageName,
254
- version: app.version,
255
- buildMarker: app.buildVersion,
256
- sourceRevision: app.sourceRevision
257
- }
258
- } : {},
259
- versionBoundary: {
260
- invariant: 'web-and-api-same-build',
261
- packageName: app.packageName,
262
- version: app.version,
263
- buildVersion: app.buildVersion,
264
- ...app.uiManifestUrl ? {
265
- uiManifestUrl: app.uiManifestUrl
266
- } : {},
267
- ...app.unitId && app.buildVersion ? {
268
- deliveryUnit: {
269
- unitId: app.unitId,
270
- buildMarker: app.buildVersion
271
- }
272
- } : {}
273
- }
274
- }
275
- };
276
- };
277
- const emitBackendFederationArtifacts = async (appDirectory, distDirectory)=>{
278
- const workspaceRoot = findWorkspaceRoot(appDirectory);
279
- if (!workspaceRoot) return;
280
- const effectApiPath = external_node_path_default().join(appDirectory, 'api/effect-api.ts');
281
- const backendFederationConfigPath = external_node_path_default().join(appDirectory, 'backend-federation.config.ts');
282
- if (!(0, external_node_fs_namespaceObject.existsSync)(effectApiPath) || !(0, external_node_fs_namespaceObject.existsSync)(backendFederationConfigPath)) return;
283
- const app = await findBackendFederationApp(workspaceRoot, appDirectory);
284
- if (!app) return;
285
- const buildIdentity = await readBuildIdentity(appDirectory);
286
- const compactDeliveryUnit = app.compactDeliveryUnit;
287
- const hasCompactDeliveryUnit = void 0 !== compactDeliveryUnit && (void 0 !== compactDeliveryUnit.unitId || void 0 !== compactDeliveryUnit.buildMarker || void 0 !== compactDeliveryUnit.packageName || void 0 !== compactDeliveryUnit.version);
288
- const hasBuildIdentity = void 0 !== buildIdentity.unitId || void 0 !== buildIdentity.buildVersion || void 0 !== buildIdentity.packageName || void 0 !== buildIdentity.version;
289
- if (hasCompactDeliveryUnit && hasBuildIdentity) {
290
- const compactConfigPath = external_node_path_default().join(workspaceRoot, COMPACT_CONFIG_PATH);
291
- const buildModulePath = buildModulePathFor(appDirectory);
292
- const mismatches = [];
293
- const compare = (label, a, b)=>{
294
- if (void 0 !== a && void 0 !== b && a !== b) mismatches.push(`${label}: deliveryUnit=${a} vs ultramodern-build=${b}`);
295
- };
296
- compare('unitId', compactDeliveryUnit?.unitId, buildIdentity.unitId);
297
- compare('buildMarker/build', compactDeliveryUnit?.buildMarker, buildIdentity.buildVersion);
298
- compare('packageName', compactDeliveryUnit?.packageName, buildIdentity.packageName);
299
- compare('version', compactDeliveryUnit?.version, buildIdentity.version);
300
- if (mismatches.length > 0) throw new Error(`[backend-federation-build] Delivery-unit identity drift between ${compactConfigPath} (deliveryUnit) and ${buildModulePath}: ${mismatches.join('; ')}`);
301
- }
302
- const unitId = compactDeliveryUnit?.unitId ?? buildIdentity.unitId;
303
- const buildVersion = compactDeliveryUnit?.buildMarker ?? buildIdentity.buildVersion;
304
- const sourceRevision = compactDeliveryUnit?.sourceRevision ?? buildIdentity.sourceRevision;
305
- const packageName = compactDeliveryUnit?.packageName ?? buildIdentity.packageName ?? app.packageName;
306
- const version = compactDeliveryUnit?.version ?? buildIdentity.version;
307
- const resolvedApp = {
308
- ...app,
309
- packageName,
310
- version,
311
- buildVersion,
312
- unitId,
313
- sourceRevision
314
- };
315
- const manifestPath = external_node_path_default().join(distDirectory, BACKEND_MANIFEST_FILE);
316
- const entryPath = external_node_path_default().join(distDirectory, BACKEND_REMOTE_ENTRY_FILE);
317
- await promises_default().mkdir(distDirectory, {
318
- recursive: true
319
- });
320
- await promises_default().writeFile(entryPath, createBackendRemoteEntrySource(workspaceRoot, resolvedApp, effectApiPath, entryPath));
321
- await promises_default().writeFile(manifestPath, `${JSON.stringify(createBackendManifest(workspaceRoot, distDirectory, resolvedApp), null, 2)}\n`);
322
- return {
323
- appId: resolvedApp.id,
324
- manifestPath,
325
- containerPath: entryPath,
326
- remoteName: resolvedApp.backendName,
327
- remoteType: resolvedApp.remoteType
328
- };
329
- };
330
- const backendFederationBuild = ()=>({
331
- name: '@modern-js/backend-federation-build',
332
- setup (api) {
333
- api.onAfterBuild(async ()=>{
334
- const { appDirectory, distDirectory } = api.getAppContext();
335
- await emitBackendFederationArtifacts(appDirectory, distDirectory);
336
- });
337
- }
338
- });
43
+ const emit_js_namespaceObject = require("./backend-federation/emit.js");
44
+ var emit_js_default = /*#__PURE__*/ __webpack_require__.n(emit_js_namespaceObject);
339
45
  exports["default"] = __webpack_exports__["default"];
340
46
  exports.emitBackendFederationArtifacts = __webpack_exports__.emitBackendFederationArtifacts;
341
47
  for(var __rspack_i in __webpack_exports__)if (-1 === [
@@ -0,0 +1,127 @@
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
+ copyCloudflareArtifacts: ()=>copyCloudflareArtifacts,
41
+ copyCloudflareD1Migrations: ()=>copyCloudflareD1Migrations,
42
+ copyCloudflarePublicAssets: ()=>copyCloudflarePublicAssets,
43
+ getCloudflareArtifacts: ()=>getCloudflareArtifacts,
44
+ getCloudflarePublicAssets: ()=>getCloudflarePublicAssets,
45
+ readRouteSpec: ()=>readRouteSpec
46
+ });
47
+ const external_node_path_namespaceObject = require("node:path");
48
+ var external_node_path_default = /*#__PURE__*/ __webpack_require__.n(external_node_path_namespaceObject);
49
+ const utils_namespaceObject = require("@modern-js/utils");
50
+ const external_constants_js_namespaceObject = require("./constants.js");
51
+ const external_utils_js_namespaceObject = require("./utils.js");
52
+ const normalizeCloudflareArtifact = (artifact, index)=>{
53
+ const from = (0, external_utils_js_namespaceObject.normalizeRelativePath)(artifact.from, `deploy.worker.artifacts[${index}].from`, 'app root');
54
+ const to = (0, external_utils_js_namespaceObject.normalizeRelativePath)(artifact.to, `deploy.worker.artifacts[${index}].to`, 'Cloudflare output');
55
+ const [topLevelDestination] = to.split('/');
56
+ const reservedDestination = external_constants_js_namespaceObject.RESERVED_ARTIFACT_DESTINATION_FILES.has(to) ? to : topLevelDestination;
57
+ if (external_constants_js_namespaceObject.RESERVED_ARTIFACT_DESTINATION_FILES.has(to) || external_constants_js_namespaceObject.RESERVED_ARTIFACT_DESTINATION_DIRECTORIES.has(topLevelDestination)) throw new Error(`deploy.worker.artifacts[${index}].to must not target generated Cloudflare output path ${JSON.stringify(reservedDestination)}.`);
58
+ return {
59
+ from,
60
+ to,
61
+ index
62
+ };
63
+ };
64
+ const getCloudflareArtifacts = (modernConfig)=>(modernConfig.deploy?.worker?.artifacts ?? []).map(normalizeCloudflareArtifact);
65
+ const normalizeCloudflarePublicAsset = (asset, index)=>{
66
+ const from = (0, external_utils_js_namespaceObject.normalizeRelativePath)(asset.from, `deploy.worker.publicAssets[${index}].from`, 'app root');
67
+ const to = (0, external_utils_js_namespaceObject.normalizeRelativePath)(asset.to, `deploy.worker.publicAssets[${index}].to`, 'Cloudflare public output', {
68
+ allowRoot: true
69
+ });
70
+ return {
71
+ from,
72
+ to,
73
+ index
74
+ };
75
+ };
76
+ const getCloudflarePublicAssets = (modernConfig)=>(modernConfig.deploy?.worker?.publicAssets ?? []).map(normalizeCloudflarePublicAsset);
77
+ const copyCloudflareArtifacts = async (appDirectory, outputDirectory, artifacts)=>{
78
+ for (const artifact of artifacts){
79
+ const sourcePath = external_node_path_default().join(appDirectory, artifact.from);
80
+ if (!await utils_namespaceObject.fs.pathExists(sourcePath)) throw new Error(`deploy.worker.artifacts[${artifact.index}].from does not exist: ${artifact.from}`);
81
+ await utils_namespaceObject.fs.copy(sourcePath, external_node_path_default().join(outputDirectory, artifact.to));
82
+ }
83
+ };
84
+ const copyCloudflarePublicAssets = async (appDirectory, publicDirectory, publicAssets)=>{
85
+ for (const asset of publicAssets){
86
+ const sourcePath = external_node_path_default().join(appDirectory, asset.from);
87
+ if (!await utils_namespaceObject.fs.pathExists(sourcePath)) throw new Error(`deploy.worker.publicAssets[${asset.index}].from does not exist: ${asset.from}`);
88
+ await utils_namespaceObject.fs.copy(sourcePath, external_node_path_default().join(publicDirectory, asset.to));
89
+ }
90
+ };
91
+ const copyCloudflareD1Migrations = async (appDirectory, outputDirectory, modernConfig)=>{
92
+ for (const [index, database] of (modernConfig.deploy?.worker?.d1Databases ?? []).entries()){
93
+ if (!database.migrationsDir) continue;
94
+ const migrationsDir = (0, external_utils_js_namespaceObject.normalizeRelativePath)(database.migrationsDir, `deploy.worker.d1Databases[${index}].migrationsDir`, 'app root');
95
+ const sourcePath = external_node_path_default().join(appDirectory, migrationsDir);
96
+ if (!await utils_namespaceObject.fs.pathExists(sourcePath)) throw new Error(`deploy.worker.d1Databases[${index}].migrationsDir does not exist: ${migrationsDir}`);
97
+ await utils_namespaceObject.fs.copy(sourcePath, external_node_path_default().join(outputDirectory, migrationsDir));
98
+ }
99
+ };
100
+ const readRouteSpec = async (outputDirectory)=>{
101
+ const routeSpecPath = external_node_path_default().join(outputDirectory, external_constants_js_namespaceObject.ROUTE_SPEC_OUTPUT);
102
+ if (!await utils_namespaceObject.fs.pathExists(routeSpecPath)) return {
103
+ routes: []
104
+ };
105
+ const routeSpec = await utils_namespaceObject.fs.readJSON(routeSpecPath);
106
+ return {
107
+ ...routeSpec,
108
+ routes: Array.isArray(routeSpec.routes) ? routeSpec.routes : []
109
+ };
110
+ };
111
+ exports.copyCloudflareArtifacts = __webpack_exports__.copyCloudflareArtifacts;
112
+ exports.copyCloudflareD1Migrations = __webpack_exports__.copyCloudflareD1Migrations;
113
+ exports.copyCloudflarePublicAssets = __webpack_exports__.copyCloudflarePublicAssets;
114
+ exports.getCloudflareArtifacts = __webpack_exports__.getCloudflareArtifacts;
115
+ exports.getCloudflarePublicAssets = __webpack_exports__.getCloudflarePublicAssets;
116
+ exports.readRouteSpec = __webpack_exports__.readRouteSpec;
117
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
118
+ "copyCloudflareArtifacts",
119
+ "copyCloudflareD1Migrations",
120
+ "copyCloudflarePublicAssets",
121
+ "getCloudflareArtifacts",
122
+ "getCloudflarePublicAssets",
123
+ "readRouteSpec"
124
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
125
+ Object.defineProperty(exports, '__esModule', {
126
+ value: true
127
+ });
@@ -0,0 +1,137 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, getters, values)=>{
5
+ var define = (defs, kind)=>{
6
+ for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
7
+ enumerable: true,
8
+ [kind]: defs[key]
9
+ });
10
+ };
11
+ define(getters, "get");
12
+ define(values, "value");
13
+ };
14
+ })();
15
+ (()=>{
16
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
17
+ })();
18
+ (()=>{
19
+ __webpack_require__.r = (exports1)=>{
20
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
21
+ value: 'Module'
22
+ });
23
+ Object.defineProperty(exports1, '__esModule', {
24
+ value: true
25
+ });
26
+ };
27
+ })();
28
+ var __webpack_exports__ = {};
29
+ __webpack_require__.r(__webpack_exports__);
30
+ __webpack_require__.d(__webpack_exports__, {
31
+ ASSETS_BINDING: ()=>ASSETS_BINDING,
32
+ BFF_EFFECT_WORKER_ENTRY: ()=>BFF_EFFECT_WORKER_ENTRY,
33
+ CLOUDFLARE_RUNTIME_TYPE: ()=>external_cloudflare_output_contract_js_namespaceObject.CLOUDFLARE_RUNTIME_TYPE,
34
+ CLOUDFLARE_WORKER_BUNDLE_FORMAT: ()=>external_cloudflare_output_contract_js_namespaceObject.CLOUDFLARE_WORKER_BUNDLE_FORMAT,
35
+ COMPATIBILITY_DATE_PATTERN: ()=>COMPATIBILITY_DATE_PATTERN,
36
+ DEFAULT_COMPATIBILITY_DATE: ()=>DEFAULT_COMPATIBILITY_DATE,
37
+ DEFAULT_SERVER_ONLY_PUBLIC_ASSET_EXCLUDES: ()=>DEFAULT_SERVER_ONLY_PUBLIC_ASSET_EXCLUDES,
38
+ EFFECT_BFF_CLOUDFLARE_IMPORT_GUIDANCE: ()=>EFFECT_BFF_CLOUDFLARE_IMPORT_GUIDANCE,
39
+ LOADABLE_STATS_FILE: ()=>LOADABLE_STATS_FILE,
40
+ OUTPUT_PACKAGE_FILE: ()=>OUTPUT_PACKAGE_FILE,
41
+ PUBLIC_ASSETS_DIRECTORY: ()=>PUBLIC_ASSETS_DIRECTORY,
42
+ REQUIRED_COMPATIBILITY_FLAGS: ()=>REQUIRED_COMPATIBILITY_FLAGS,
43
+ RESERVED_ARTIFACT_DESTINATION_DIRECTORIES: ()=>RESERVED_ARTIFACT_DESTINATION_DIRECTORIES,
44
+ RESERVED_ARTIFACT_DESTINATION_FILES: ()=>RESERVED_ARTIFACT_DESTINATION_FILES,
45
+ ROUTE_MANIFEST_FILE: ()=>ROUTE_MANIFEST_FILE,
46
+ ROUTE_SPEC_FILE: ()=>ROUTE_SPEC_FILE,
47
+ ROUTE_SPEC_OUTPUT: ()=>ROUTE_SPEC_OUTPUT,
48
+ SERVER_BUNDLE_DIRECTORY: ()=>SERVER_BUNDLE_DIRECTORY,
49
+ SERVER_OUTPUT_DIRECTORY: ()=>SERVER_OUTPUT_DIRECTORY,
50
+ WORKER_BUNDLE_DIRECTORY: ()=>WORKER_BUNDLE_DIRECTORY,
51
+ WORKER_ENTRY: ()=>WORKER_ENTRY,
52
+ WORKER_MANIFEST: ()=>WORKER_MANIFEST,
53
+ WRANGLER_CONFIG_FILE: ()=>WRANGLER_CONFIG_FILE
54
+ });
55
+ const external_cloudflare_output_contract_js_namespaceObject = require("../cloudflare-output-contract.js");
56
+ const WORKER_ENTRY = external_cloudflare_output_contract_js_namespaceObject.CLOUDFLARE_WORKER_ENTRY;
57
+ const WORKER_MANIFEST = external_cloudflare_output_contract_js_namespaceObject.CLOUDFLARE_WORKER_MANIFEST;
58
+ const WRANGLER_CONFIG_FILE = external_cloudflare_output_contract_js_namespaceObject.CLOUDFLARE_WRANGLER_CONFIG_FILE;
59
+ const OUTPUT_PACKAGE_FILE = external_cloudflare_output_contract_js_namespaceObject.CLOUDFLARE_OUTPUT_PACKAGE_FILE;
60
+ const ASSETS_BINDING = external_cloudflare_output_contract_js_namespaceObject.CLOUDFLARE_ASSETS_BINDING;
61
+ const ROUTE_SPEC_FILE = 'route.json';
62
+ const ROUTE_SPEC_OUTPUT = `server/${ROUTE_SPEC_FILE}`;
63
+ const LOADABLE_STATS_FILE = 'loadable-stats.json';
64
+ const ROUTE_MANIFEST_FILE = 'routes-manifest.json';
65
+ const PUBLIC_ASSETS_DIRECTORY = external_cloudflare_output_contract_js_namespaceObject.CLOUDFLARE_PUBLIC_ASSETS_DIRECTORY;
66
+ const WORKER_BUNDLE_DIRECTORY = external_cloudflare_output_contract_js_namespaceObject.CLOUDFLARE_WORKER_BUNDLE_DIRECTORY;
67
+ const SERVER_BUNDLE_DIRECTORY = 'bundles';
68
+ const SERVER_OUTPUT_DIRECTORY = 'server';
69
+ const DEFAULT_SERVER_ONLY_PUBLIC_ASSET_EXCLUDES = [
70
+ 'api',
71
+ 'shared'
72
+ ];
73
+ const BFF_EFFECT_WORKER_ENTRY = `${WORKER_BUNDLE_DIRECTORY}/__modern_bff_effect.js`;
74
+ const EFFECT_BFF_CLOUDFLARE_IMPORT_GUIDANCE = 'Ensure the Effect API entry exists at api/index.ts or bff.effect.entry, and import Cloudflare edge handlers from @modern-js/plugin-bff/effect-edge instead of lambda/Hono server helpers.';
75
+ const DEFAULT_COMPATIBILITY_DATE = '2026-06-02';
76
+ const COMPATIBILITY_DATE_PATTERN = /^\d{4}-\d{2}-\d{2}$/u;
77
+ const REQUIRED_COMPATIBILITY_FLAGS = external_cloudflare_output_contract_js_namespaceObject.CLOUDFLARE_REQUIRED_COMPATIBILITY_FLAGS;
78
+ const RESERVED_ARTIFACT_DESTINATION_FILES = new Set([
79
+ WRANGLER_CONFIG_FILE,
80
+ OUTPUT_PACKAGE_FILE
81
+ ]);
82
+ const RESERVED_ARTIFACT_DESTINATION_DIRECTORIES = new Set([
83
+ PUBLIC_ASSETS_DIRECTORY,
84
+ SERVER_OUTPUT_DIRECTORY,
85
+ WORKER_BUNDLE_DIRECTORY
86
+ ]);
87
+ exports.ASSETS_BINDING = __webpack_exports__.ASSETS_BINDING;
88
+ exports.BFF_EFFECT_WORKER_ENTRY = __webpack_exports__.BFF_EFFECT_WORKER_ENTRY;
89
+ exports.CLOUDFLARE_RUNTIME_TYPE = __webpack_exports__.CLOUDFLARE_RUNTIME_TYPE;
90
+ exports.CLOUDFLARE_WORKER_BUNDLE_FORMAT = __webpack_exports__.CLOUDFLARE_WORKER_BUNDLE_FORMAT;
91
+ exports.COMPATIBILITY_DATE_PATTERN = __webpack_exports__.COMPATIBILITY_DATE_PATTERN;
92
+ exports.DEFAULT_COMPATIBILITY_DATE = __webpack_exports__.DEFAULT_COMPATIBILITY_DATE;
93
+ exports.DEFAULT_SERVER_ONLY_PUBLIC_ASSET_EXCLUDES = __webpack_exports__.DEFAULT_SERVER_ONLY_PUBLIC_ASSET_EXCLUDES;
94
+ exports.EFFECT_BFF_CLOUDFLARE_IMPORT_GUIDANCE = __webpack_exports__.EFFECT_BFF_CLOUDFLARE_IMPORT_GUIDANCE;
95
+ exports.LOADABLE_STATS_FILE = __webpack_exports__.LOADABLE_STATS_FILE;
96
+ exports.OUTPUT_PACKAGE_FILE = __webpack_exports__.OUTPUT_PACKAGE_FILE;
97
+ exports.PUBLIC_ASSETS_DIRECTORY = __webpack_exports__.PUBLIC_ASSETS_DIRECTORY;
98
+ exports.REQUIRED_COMPATIBILITY_FLAGS = __webpack_exports__.REQUIRED_COMPATIBILITY_FLAGS;
99
+ exports.RESERVED_ARTIFACT_DESTINATION_DIRECTORIES = __webpack_exports__.RESERVED_ARTIFACT_DESTINATION_DIRECTORIES;
100
+ exports.RESERVED_ARTIFACT_DESTINATION_FILES = __webpack_exports__.RESERVED_ARTIFACT_DESTINATION_FILES;
101
+ exports.ROUTE_MANIFEST_FILE = __webpack_exports__.ROUTE_MANIFEST_FILE;
102
+ exports.ROUTE_SPEC_FILE = __webpack_exports__.ROUTE_SPEC_FILE;
103
+ exports.ROUTE_SPEC_OUTPUT = __webpack_exports__.ROUTE_SPEC_OUTPUT;
104
+ exports.SERVER_BUNDLE_DIRECTORY = __webpack_exports__.SERVER_BUNDLE_DIRECTORY;
105
+ exports.SERVER_OUTPUT_DIRECTORY = __webpack_exports__.SERVER_OUTPUT_DIRECTORY;
106
+ exports.WORKER_BUNDLE_DIRECTORY = __webpack_exports__.WORKER_BUNDLE_DIRECTORY;
107
+ exports.WORKER_ENTRY = __webpack_exports__.WORKER_ENTRY;
108
+ exports.WORKER_MANIFEST = __webpack_exports__.WORKER_MANIFEST;
109
+ exports.WRANGLER_CONFIG_FILE = __webpack_exports__.WRANGLER_CONFIG_FILE;
110
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
111
+ "ASSETS_BINDING",
112
+ "BFF_EFFECT_WORKER_ENTRY",
113
+ "CLOUDFLARE_RUNTIME_TYPE",
114
+ "CLOUDFLARE_WORKER_BUNDLE_FORMAT",
115
+ "COMPATIBILITY_DATE_PATTERN",
116
+ "DEFAULT_COMPATIBILITY_DATE",
117
+ "DEFAULT_SERVER_ONLY_PUBLIC_ASSET_EXCLUDES",
118
+ "EFFECT_BFF_CLOUDFLARE_IMPORT_GUIDANCE",
119
+ "LOADABLE_STATS_FILE",
120
+ "OUTPUT_PACKAGE_FILE",
121
+ "PUBLIC_ASSETS_DIRECTORY",
122
+ "REQUIRED_COMPATIBILITY_FLAGS",
123
+ "RESERVED_ARTIFACT_DESTINATION_DIRECTORIES",
124
+ "RESERVED_ARTIFACT_DESTINATION_FILES",
125
+ "ROUTE_MANIFEST_FILE",
126
+ "ROUTE_SPEC_FILE",
127
+ "ROUTE_SPEC_OUTPUT",
128
+ "SERVER_BUNDLE_DIRECTORY",
129
+ "SERVER_OUTPUT_DIRECTORY",
130
+ "WORKER_BUNDLE_DIRECTORY",
131
+ "WORKER_ENTRY",
132
+ "WORKER_MANIFEST",
133
+ "WRANGLER_CONFIG_FILE"
134
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
135
+ Object.defineProperty(exports, '__esModule', {
136
+ value: true
137
+ });