@bleedingdev/modern-js-app-tools-extensions 3.9.0-ultramodern.4 → 3.9.0-ultramodern.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/backend-federation-build/codegen.js +256 -0
- package/dist/cjs/backend-federation-build/config.js +204 -0
- package/dist/cjs/backend-federation-build/emit.js +150 -0
- package/dist/cjs/backend-federation-build/index.js +53 -0
- package/dist/cjs/build-config/build-environment.js +268 -0
- package/dist/cjs/build-config/precompress/plugin.js +124 -0
- package/dist/cjs/build-config/precompress/types.js +18 -0
- package/dist/cjs/build-config/public.js +46 -0
- package/dist/cjs/cloudflare/constants.js +1 -1
- package/dist/cjs/cloudflare/delivery-unit.js +9 -9
- package/dist/cjs/cloudflare-output-verifier/identity.js +6 -6
- package/dist/cjs/config.js +29 -1
- package/dist/cjs/deploy-output/npmAliases.js +226 -0
- package/dist/cjs/deploy-output/plugin.js +76 -0
- package/dist/cjs/deploy-output/target.js +48 -0
- package/dist/cjs/native-type-checker.js +6 -3
- package/dist/cjs/release-envelope/framework-output.js +27 -27
- package/dist/cjs/release-envelope/plugin.js +2 -1
- package/dist/esm/backend-federation-build/codegen.mjs +205 -0
- package/dist/esm/backend-federation-build/config.mjs +128 -0
- package/dist/esm/backend-federation-build/emit.mjs +99 -0
- package/dist/esm/backend-federation-build/index.mjs +1 -0
- package/dist/esm/build-config/build-environment.mjs +224 -0
- package/dist/esm/build-config/precompress/plugin.mjs +76 -0
- package/dist/esm/build-config/precompress/types.mjs +0 -0
- package/dist/esm/build-config/public.mjs +1 -0
- package/dist/esm/cloudflare/constants.mjs +1 -1
- package/dist/esm/cloudflare/delivery-unit.mjs +1 -1
- package/dist/esm/cloudflare-output-verifier/identity.mjs +1 -1
- package/dist/esm/config.mjs +1 -0
- package/dist/esm/deploy-output/npmAliases.mjs +174 -0
- package/dist/esm/deploy-output/plugin.mjs +28 -0
- package/dist/esm/deploy-output/target.mjs +10 -0
- package/dist/esm/native-type-checker.mjs +6 -3
- package/dist/esm/release-envelope/framework-output.mjs +1 -1
- package/dist/esm/release-envelope/plugin.mjs +2 -1
- package/dist/esm-node/backend-federation-build/codegen.mjs +206 -0
- package/dist/esm-node/backend-federation-build/config.mjs +129 -0
- package/dist/esm-node/backend-federation-build/emit.mjs +100 -0
- package/dist/esm-node/backend-federation-build/index.mjs +2 -0
- package/dist/esm-node/build-config/build-environment.mjs +225 -0
- package/dist/esm-node/build-config/precompress/plugin.mjs +77 -0
- package/dist/esm-node/build-config/precompress/types.mjs +1 -0
- package/dist/esm-node/build-config/public.mjs +2 -0
- package/dist/esm-node/cloudflare/constants.mjs +1 -1
- package/dist/esm-node/cloudflare/delivery-unit.mjs +1 -1
- package/dist/esm-node/cloudflare-output-verifier/identity.mjs +1 -1
- package/dist/esm-node/config.mjs +1 -0
- package/dist/esm-node/deploy-output/npmAliases.mjs +175 -0
- package/dist/esm-node/deploy-output/plugin.mjs +31 -0
- package/dist/esm-node/deploy-output/target.mjs +11 -0
- package/dist/esm-node/native-type-checker.mjs +6 -3
- package/dist/esm-node/release-envelope/framework-output.mjs +1 -1
- package/dist/esm-node/release-envelope/plugin.mjs +2 -1
- package/dist/types/backend-federation-build/codegen.d.ts +86 -0
- package/dist/types/backend-federation-build/config.d.ts +103 -0
- package/dist/types/backend-federation-build/emit.d.ts +21 -0
- package/dist/types/backend-federation-build/index.d.ts +2 -0
- package/dist/types/build-config/build-environment.d.ts +22 -0
- package/dist/types/build-config/precompress/plugin.d.ts +4 -0
- package/dist/types/build-config/precompress/types.d.ts +19 -0
- package/dist/types/build-config/public.d.ts +2 -0
- package/dist/types/cloudflare/constants.d.ts +1 -1
- package/dist/types/cloudflare/delivery-unit.d.ts +1 -1
- package/dist/types/cloudflare/worker-manifest.d.ts +2 -2
- package/dist/types/cloudflare-output-verifier/identity.d.ts +1 -1
- package/dist/types/config.d.ts +2 -0
- package/dist/types/deploy-output/npmAliases.d.ts +14 -0
- package/dist/types/deploy-output/plugin.d.ts +15 -0
- package/dist/types/deploy-output/target.d.ts +6 -0
- package/dist/types/precompress/LICENSE +20 -0
- package/dist/types/precompress/index.d.ts +76 -0
- package/package.json +50 -8
- package/src/backend-federation-build/codegen.ts +245 -0
- package/src/backend-federation-build/config.ts +376 -0
- package/src/backend-federation-build/emit.ts +205 -0
- package/src/backend-federation-build/index.ts +2 -0
- package/src/build-config/build-environment.ts +404 -0
- package/src/build-config/precompress/plugin.ts +140 -0
- package/src/build-config/precompress/types.ts +26 -0
- package/src/build-config/public.ts +6 -0
- package/src/cloudflare/constants.ts +1 -1
- package/src/cloudflare/delivery-unit.ts +2 -2
- package/src/cloudflare/worker-manifest.ts +1 -0
- package/src/cloudflare-builder.ts +1 -0
- package/src/cloudflare-output-verifier/identity.ts +1 -1
- package/src/config.ts +7 -0
- package/src/deploy-output/npmAliases.ts +333 -0
- package/src/deploy-output/plugin.ts +49 -0
- package/src/deploy-output/target.ts +23 -0
- package/src/native-type-checker.ts +11 -3
- package/src/release-envelope/framework-output.ts +1 -1
- package/src/release-envelope/plugin.ts +5 -1
|
@@ -0,0 +1,268 @@
|
|
|
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
|
+
getBuildConfigEnvironment: ()=>getBuildConfigEnvironment,
|
|
32
|
+
resolveEffectTsgoCompiler: ()=>resolveEffectTsgoCompiler,
|
|
33
|
+
withBuildConfigEnvironment: ()=>withBuildConfigEnvironment
|
|
34
|
+
});
|
|
35
|
+
const external_node_child_process_namespaceObject = require("node:child_process");
|
|
36
|
+
const external_node_crypto_namespaceObject = require("node:crypto");
|
|
37
|
+
const external_node_fs_namespaceObject = require("node:fs");
|
|
38
|
+
const external_node_module_namespaceObject = require("node:module");
|
|
39
|
+
const external_node_os_namespaceObject = require("node:os");
|
|
40
|
+
const external_node_path_namespaceObject = require("node:path");
|
|
41
|
+
const EFFECT_TSGO_PACKAGE = '@effect/tsgo';
|
|
42
|
+
const EFFECT_TSGO_BIN = 'effect-tsgo';
|
|
43
|
+
const EFFECT_TSGO_RESOLUTION_ERROR = 'Unable to resolve the Effect TS-Go compiler. Install "@effect/tsgo" and a native TypeScript backend for this build config, or set EFFECT_TSGO_BIN.';
|
|
44
|
+
const executableEffectTsgoCompilers = new Map();
|
|
45
|
+
const BUILD_CONFIG_ENVIRONMENT_PLUGIN = 'ModernJsBuildConfigEnvironmentLeasePlugin';
|
|
46
|
+
const ENVIRONMENT_LEASE_REGISTRY_KEY = Symbol.for('@modern-js/app-tools/build-config-environment-lease-registry/v1');
|
|
47
|
+
const ENVIRONMENT_LEASE_REGISTRY_BRAND = Symbol.for('@modern-js/app-tools/build-config-environment-lease-registry-brand/v1');
|
|
48
|
+
const LIFECYCLE_HOOK_NAMES = [
|
|
49
|
+
'run',
|
|
50
|
+
'watchRun',
|
|
51
|
+
'afterDone',
|
|
52
|
+
'failed',
|
|
53
|
+
'shutdown',
|
|
54
|
+
'watchClose'
|
|
55
|
+
];
|
|
56
|
+
function restoreEnvironment(name, value) {
|
|
57
|
+
if (void 0 === value) delete process.env[name];
|
|
58
|
+
else process.env[name] = value;
|
|
59
|
+
}
|
|
60
|
+
function createEnvironmentLeaseRegistry() {
|
|
61
|
+
const environmentLeases = new Map();
|
|
62
|
+
return Object.freeze({
|
|
63
|
+
acquire (name, value) {
|
|
64
|
+
let lease = environmentLeases.get(name);
|
|
65
|
+
if (lease) {
|
|
66
|
+
if (lease.value !== value) throw new Error(`Build config environment "${name}" already has an active lease for a different value.`);
|
|
67
|
+
if (process.env[name] !== lease.value) throw new Error(`Build config environment lease for "${name}" lost ownership before another lease was acquired.`);
|
|
68
|
+
} else {
|
|
69
|
+
lease = {
|
|
70
|
+
originalValue: process.env[name],
|
|
71
|
+
owners: new Set(),
|
|
72
|
+
value
|
|
73
|
+
};
|
|
74
|
+
process.env[name] = value;
|
|
75
|
+
environmentLeases.set(name, lease);
|
|
76
|
+
}
|
|
77
|
+
const owner = Symbol(name);
|
|
78
|
+
lease.owners.add(owner);
|
|
79
|
+
let released = false;
|
|
80
|
+
return ()=>{
|
|
81
|
+
if (released) return;
|
|
82
|
+
if (environmentLeases.get(name) !== lease || !lease.owners.has(owner)) throw new Error(`Build config environment lease for "${name}" cannot be restored because its ownership record was lost.`);
|
|
83
|
+
released = true;
|
|
84
|
+
const lostOwnership = process.env[name] !== lease.value;
|
|
85
|
+
lease.owners.delete(owner);
|
|
86
|
+
if (0 === lease.owners.size) {
|
|
87
|
+
environmentLeases.delete(name);
|
|
88
|
+
restoreEnvironment(name, lease.originalValue);
|
|
89
|
+
} else if (lostOwnership) process.env[name] = lease.value;
|
|
90
|
+
if (lostOwnership) throw new Error(`Build config environment lease for "${name}" lost ownership before restoration.`);
|
|
91
|
+
};
|
|
92
|
+
},
|
|
93
|
+
brand: ENVIRONMENT_LEASE_REGISTRY_BRAND
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function getEnvironmentLeaseRegistry() {
|
|
97
|
+
const descriptor = Object.getOwnPropertyDescriptor(process, ENVIRONMENT_LEASE_REGISTRY_KEY);
|
|
98
|
+
if (descriptor) {
|
|
99
|
+
const registry = descriptor.value;
|
|
100
|
+
if (descriptor.configurable || descriptor.enumerable || descriptor.writable || registry?.brand !== ENVIRONMENT_LEASE_REGISTRY_BRAND || 'function' != typeof registry.acquire) throw new Error('The process-global build config environment lease registry is occupied by an incompatible value.');
|
|
101
|
+
return registry;
|
|
102
|
+
}
|
|
103
|
+
const registry = createEnvironmentLeaseRegistry();
|
|
104
|
+
Object.defineProperty(process, ENVIRONMENT_LEASE_REGISTRY_KEY, {
|
|
105
|
+
configurable: false,
|
|
106
|
+
enumerable: false,
|
|
107
|
+
value: registry,
|
|
108
|
+
writable: false
|
|
109
|
+
});
|
|
110
|
+
return registry;
|
|
111
|
+
}
|
|
112
|
+
function acquireEnvironmentLease(name, value) {
|
|
113
|
+
return getEnvironmentLeaseRegistry().acquire(name, value);
|
|
114
|
+
}
|
|
115
|
+
function releaseAfterFailure(release, originalError) {
|
|
116
|
+
try {
|
|
117
|
+
release();
|
|
118
|
+
} catch (restorationError) {
|
|
119
|
+
throw new AggregateError([
|
|
120
|
+
originalError,
|
|
121
|
+
restorationError
|
|
122
|
+
], 'Build config environment setup and restoration both failed.');
|
|
123
|
+
}
|
|
124
|
+
throw originalError;
|
|
125
|
+
}
|
|
126
|
+
class BuildConfigEnvironmentLeasePlugin {
|
|
127
|
+
apply(compiler) {
|
|
128
|
+
const hooks = compiler.hooks;
|
|
129
|
+
try {
|
|
130
|
+
const lifecycleHooks = {};
|
|
131
|
+
for (const hookName of LIFECYCLE_HOOK_NAMES){
|
|
132
|
+
const hook = hooks[hookName];
|
|
133
|
+
if (!hook || 'function' != typeof hook.tap) throw new Error(`Rspack does not expose the "${hookName}" lifecycle hook required to restore build config environment leases.`);
|
|
134
|
+
lifecycleHooks[hookName] = hook;
|
|
135
|
+
}
|
|
136
|
+
let mode = 'pending';
|
|
137
|
+
const modeTap = {
|
|
138
|
+
name: BUILD_CONFIG_ENVIRONMENT_PLUGIN,
|
|
139
|
+
stage: Number.MIN_SAFE_INTEGER
|
|
140
|
+
};
|
|
141
|
+
const releaseTap = {
|
|
142
|
+
name: BUILD_CONFIG_ENVIRONMENT_PLUGIN,
|
|
143
|
+
stage: Number.MAX_SAFE_INTEGER
|
|
144
|
+
};
|
|
145
|
+
const releaseAfterOneShot = ()=>{
|
|
146
|
+
if ('watch' !== mode && true !== compiler.watchMode) this.release();
|
|
147
|
+
};
|
|
148
|
+
lifecycleHooks.run.tap(modeTap, ()=>{
|
|
149
|
+
mode = 'run';
|
|
150
|
+
});
|
|
151
|
+
lifecycleHooks.watchRun.tap(modeTap, ()=>{
|
|
152
|
+
mode = 'watch';
|
|
153
|
+
});
|
|
154
|
+
lifecycleHooks.afterDone.tap(releaseTap, releaseAfterOneShot);
|
|
155
|
+
lifecycleHooks.failed.tap(releaseTap, releaseAfterOneShot);
|
|
156
|
+
lifecycleHooks.shutdown.tap(releaseTap, this.release);
|
|
157
|
+
lifecycleHooks.watchClose.tap(releaseTap, this.release);
|
|
158
|
+
} catch (error) {
|
|
159
|
+
releaseAfterFailure(this.release, error);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
constructor(release){
|
|
163
|
+
this.release = release;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
function resolveEffectTsgoCli(from) {
|
|
167
|
+
const projectRequire = (0, external_node_module_namespaceObject.createRequire)(from);
|
|
168
|
+
const packageJsonPath = projectRequire.resolve(`${EFFECT_TSGO_PACKAGE}/package.json`);
|
|
169
|
+
const packageJson = JSON.parse((0, external_node_fs_namespaceObject.readFileSync)(packageJsonPath, 'utf-8'));
|
|
170
|
+
const bin = 'string' == typeof packageJson.bin ? packageJson.bin : packageJson.bin?.[EFFECT_TSGO_BIN];
|
|
171
|
+
if (!bin) throw new Error(EFFECT_TSGO_RESOLUTION_ERROR);
|
|
172
|
+
return (0, external_node_path_namespaceObject.resolve)((0, external_node_path_namespaceObject.dirname)(packageJsonPath), bin);
|
|
173
|
+
}
|
|
174
|
+
function resolveExecutableEffectTsgoCompiler(compilerPath) {
|
|
175
|
+
if ('win32' === process.platform) return compilerPath;
|
|
176
|
+
const sourcePath = (0, external_node_fs_namespaceObject.realpathSync)(compilerPath);
|
|
177
|
+
const source = (0, external_node_fs_namespaceObject.lstatSync)(sourcePath);
|
|
178
|
+
if (!source.isFile()) throw new Error(EFFECT_TSGO_RESOLUTION_ERROR);
|
|
179
|
+
try {
|
|
180
|
+
(0, external_node_fs_namespaceObject.accessSync)(sourcePath, external_node_fs_namespaceObject.constants.X_OK);
|
|
181
|
+
return compilerPath;
|
|
182
|
+
} catch {}
|
|
183
|
+
const cachedCompiler = executableEffectTsgoCompilers.get(sourcePath);
|
|
184
|
+
if (cachedCompiler) try {
|
|
185
|
+
(0, external_node_fs_namespaceObject.accessSync)(cachedCompiler, external_node_fs_namespaceObject.constants.X_OK);
|
|
186
|
+
return cachedCompiler;
|
|
187
|
+
} catch {
|
|
188
|
+
executableEffectTsgoCompilers.delete(sourcePath);
|
|
189
|
+
}
|
|
190
|
+
const compilerBytes = (0, external_node_fs_namespaceObject.readFileSync)(sourcePath);
|
|
191
|
+
const compilerDigest = (0, external_node_crypto_namespaceObject.createHash)('sha256').update(compilerBytes).digest('hex');
|
|
192
|
+
const compilerDirectory = (0, external_node_path_namespaceObject.join)((0, external_node_os_namespaceObject.tmpdir)(), 'modern-js', 'effect-tsgo', compilerDigest);
|
|
193
|
+
(0, external_node_fs_namespaceObject.mkdirSync)(compilerDirectory, {
|
|
194
|
+
recursive: true,
|
|
195
|
+
mode: 448
|
|
196
|
+
});
|
|
197
|
+
const executableCompiler = (0, external_node_path_namespaceObject.join)(compilerDirectory, (0, external_node_path_namespaceObject.basename)(sourcePath));
|
|
198
|
+
try {
|
|
199
|
+
(0, external_node_fs_namespaceObject.accessSync)(executableCompiler, external_node_fs_namespaceObject.constants.X_OK);
|
|
200
|
+
} catch {
|
|
201
|
+
const temporaryCompiler = (0, external_node_path_namespaceObject.join)(compilerDirectory, `.${(0, external_node_path_namespaceObject.basename)(sourcePath)}.${process.pid}.tmp`);
|
|
202
|
+
(0, external_node_fs_namespaceObject.rmSync)(temporaryCompiler, {
|
|
203
|
+
force: true
|
|
204
|
+
});
|
|
205
|
+
try {
|
|
206
|
+
(0, external_node_fs_namespaceObject.writeFileSync)(temporaryCompiler, compilerBytes, {
|
|
207
|
+
flag: 'wx',
|
|
208
|
+
mode: 448
|
|
209
|
+
});
|
|
210
|
+
(0, external_node_fs_namespaceObject.chmodSync)(temporaryCompiler, 448);
|
|
211
|
+
(0, external_node_fs_namespaceObject.renameSync)(temporaryCompiler, executableCompiler);
|
|
212
|
+
} finally{
|
|
213
|
+
(0, external_node_fs_namespaceObject.rmSync)(temporaryCompiler, {
|
|
214
|
+
force: true
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
(0, external_node_fs_namespaceObject.accessSync)(executableCompiler, external_node_fs_namespaceObject.constants.X_OK);
|
|
219
|
+
executableEffectTsgoCompilers.set(sourcePath, executableCompiler);
|
|
220
|
+
return executableCompiler;
|
|
221
|
+
}
|
|
222
|
+
function getBuildConfigEnvironment(name) {
|
|
223
|
+
return process.env[name];
|
|
224
|
+
}
|
|
225
|
+
function withBuildConfigEnvironment(name, value, setup) {
|
|
226
|
+
return async (config, ...args)=>{
|
|
227
|
+
const release = acquireEnvironmentLease(name, value);
|
|
228
|
+
try {
|
|
229
|
+
const configured = await setup(config, ...args) ?? config;
|
|
230
|
+
configured.plugins = [
|
|
231
|
+
...configured.plugins ?? [],
|
|
232
|
+
new BuildConfigEnvironmentLeasePlugin(release)
|
|
233
|
+
];
|
|
234
|
+
return configured;
|
|
235
|
+
} catch (error) {
|
|
236
|
+
releaseAfterFailure(release, error);
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
function resolveEffectTsgoCompiler(options) {
|
|
241
|
+
const configuredCompiler = getBuildConfigEnvironment('EFFECT_TSGO_BIN')?.trim();
|
|
242
|
+
if (configuredCompiler) try {
|
|
243
|
+
return resolveExecutableEffectTsgoCompiler(configuredCompiler);
|
|
244
|
+
} catch {
|
|
245
|
+
throw new Error(EFFECT_TSGO_RESOLUTION_ERROR);
|
|
246
|
+
}
|
|
247
|
+
try {
|
|
248
|
+
const compiler = (0, external_node_child_process_namespaceObject.execFileSync)(process.execPath, [
|
|
249
|
+
resolveEffectTsgoCli(options.from),
|
|
250
|
+
'get-exe-path'
|
|
251
|
+
], {
|
|
252
|
+
encoding: 'utf-8'
|
|
253
|
+
}).trim();
|
|
254
|
+
if (compiler) return resolveExecutableEffectTsgoCompiler(compiler);
|
|
255
|
+
} catch {}
|
|
256
|
+
throw new Error(EFFECT_TSGO_RESOLUTION_ERROR);
|
|
257
|
+
}
|
|
258
|
+
exports.getBuildConfigEnvironment = __webpack_exports__.getBuildConfigEnvironment;
|
|
259
|
+
exports.resolveEffectTsgoCompiler = __webpack_exports__.resolveEffectTsgoCompiler;
|
|
260
|
+
exports.withBuildConfigEnvironment = __webpack_exports__.withBuildConfigEnvironment;
|
|
261
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
262
|
+
"getBuildConfigEnvironment",
|
|
263
|
+
"resolveEffectTsgoCompiler",
|
|
264
|
+
"withBuildConfigEnvironment"
|
|
265
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
266
|
+
Object.defineProperty(exports, '__esModule', {
|
|
267
|
+
value: true
|
|
268
|
+
});
|
|
@@ -0,0 +1,124 @@
|
|
|
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
|
+
builderPluginAdapterPrecompress: ()=>builderPluginAdapterPrecompress
|
|
41
|
+
});
|
|
42
|
+
const external_node_zlib_namespaceObject = require("node:zlib");
|
|
43
|
+
const external_compression_webpack_plugin_namespaceObject = require("compression-webpack-plugin");
|
|
44
|
+
var external_compression_webpack_plugin_default = /*#__PURE__*/ __webpack_require__.n(external_compression_webpack_plugin_namespaceObject);
|
|
45
|
+
const DEFAULT_PRECOMPRESS_TEST = /\.(js|mjs|cjs|css|html|svg|json|map)$/i;
|
|
46
|
+
const DEFAULT_PRECOMPRESS_THRESHOLD = 10240;
|
|
47
|
+
const DEFAULT_PRECOMPRESS_MIN_RATIO = 0.8;
|
|
48
|
+
const createDefaultGzipOptions = ()=>({
|
|
49
|
+
algorithm: 'gzip',
|
|
50
|
+
filename: '[path][base].gz',
|
|
51
|
+
test: DEFAULT_PRECOMPRESS_TEST,
|
|
52
|
+
threshold: DEFAULT_PRECOMPRESS_THRESHOLD,
|
|
53
|
+
minRatio: DEFAULT_PRECOMPRESS_MIN_RATIO,
|
|
54
|
+
compressionOptions: {
|
|
55
|
+
level: 6
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
const createDefaultBrotliOptions = ()=>({
|
|
59
|
+
algorithm: 'brotliCompress',
|
|
60
|
+
filename: '[path][base].br',
|
|
61
|
+
test: DEFAULT_PRECOMPRESS_TEST,
|
|
62
|
+
threshold: DEFAULT_PRECOMPRESS_THRESHOLD,
|
|
63
|
+
minRatio: DEFAULT_PRECOMPRESS_MIN_RATIO,
|
|
64
|
+
compressionOptions: {
|
|
65
|
+
params: {
|
|
66
|
+
[external_node_zlib_namespaceObject.constants.BROTLI_PARAM_QUALITY]: 9
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
const mergeCompressionOptions = (base, next)=>{
|
|
71
|
+
const merged = {
|
|
72
|
+
...base,
|
|
73
|
+
...next
|
|
74
|
+
};
|
|
75
|
+
if (base.compressionOptions || next.compressionOptions) {
|
|
76
|
+
const baseCompressionOptions = base.compressionOptions;
|
|
77
|
+
const nextCompressionOptions = next.compressionOptions;
|
|
78
|
+
const mergedCompressionOptions = {
|
|
79
|
+
...baseCompressionOptions,
|
|
80
|
+
...nextCompressionOptions
|
|
81
|
+
};
|
|
82
|
+
if (baseCompressionOptions?.params || nextCompressionOptions?.params) mergedCompressionOptions.params = {
|
|
83
|
+
...baseCompressionOptions?.params,
|
|
84
|
+
...nextCompressionOptions?.params
|
|
85
|
+
};
|
|
86
|
+
merged.compressionOptions = mergedCompressionOptions;
|
|
87
|
+
}
|
|
88
|
+
return merged;
|
|
89
|
+
};
|
|
90
|
+
const resolveCodecOptions = (codecConfig, createDefaultOptions)=>{
|
|
91
|
+
if (false === codecConfig) return null;
|
|
92
|
+
if (void 0 === codecConfig || true === codecConfig) return createDefaultOptions();
|
|
93
|
+
return mergeCompressionOptions(createDefaultOptions(), codecConfig);
|
|
94
|
+
};
|
|
95
|
+
const resolvePrecompressConfig = (precompress)=>{
|
|
96
|
+
if (false === precompress || void 0 === precompress) return false;
|
|
97
|
+
if (true === precompress) return {};
|
|
98
|
+
return precompress;
|
|
99
|
+
};
|
|
100
|
+
const builderPluginAdapterPrecompress = (precompress)=>({
|
|
101
|
+
name: 'builder-plugin-adapter-modern-precompress',
|
|
102
|
+
setup (api) {
|
|
103
|
+
api.modifyBundlerChain((chain, { isProd, target })=>{
|
|
104
|
+
if (!isProd || 'web' !== target) return;
|
|
105
|
+
const precompressConfig = resolvePrecompressConfig(precompress);
|
|
106
|
+
if (false === precompressConfig) return;
|
|
107
|
+
const gzipOptions = resolveCodecOptions(precompressConfig.gzip, createDefaultGzipOptions);
|
|
108
|
+
if (gzipOptions) chain.plugin('modern-precompress-gzip').use(external_compression_webpack_plugin_default(), [
|
|
109
|
+
gzipOptions
|
|
110
|
+
]);
|
|
111
|
+
const brotliOptions = resolveCodecOptions(precompressConfig.brotli, createDefaultBrotliOptions);
|
|
112
|
+
if (brotliOptions) chain.plugin('modern-precompress-brotli').use(external_compression_webpack_plugin_default(), [
|
|
113
|
+
brotliOptions
|
|
114
|
+
]);
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
exports.builderPluginAdapterPrecompress = __webpack_exports__.builderPluginAdapterPrecompress;
|
|
119
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
120
|
+
"builderPluginAdapterPrecompress"
|
|
121
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
122
|
+
Object.defineProperty(exports, '__esModule', {
|
|
123
|
+
value: true
|
|
124
|
+
});
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.r = (exports1)=>{
|
|
5
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
6
|
+
value: 'Module'
|
|
7
|
+
});
|
|
8
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
9
|
+
value: true
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
})();
|
|
13
|
+
var __webpack_exports__ = {};
|
|
14
|
+
__webpack_require__.r(__webpack_exports__);
|
|
15
|
+
for(var __rspack_i in __webpack_exports__)exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
16
|
+
Object.defineProperty(exports, '__esModule', {
|
|
17
|
+
value: true
|
|
18
|
+
});
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
getBuildConfigEnvironment: ()=>external_build_environment_js_namespaceObject.getBuildConfigEnvironment,
|
|
32
|
+
resolveEffectTsgoCompiler: ()=>external_build_environment_js_namespaceObject.resolveEffectTsgoCompiler,
|
|
33
|
+
withBuildConfigEnvironment: ()=>external_build_environment_js_namespaceObject.withBuildConfigEnvironment
|
|
34
|
+
});
|
|
35
|
+
const external_build_environment_js_namespaceObject = require("./build-environment.js");
|
|
36
|
+
exports.getBuildConfigEnvironment = __webpack_exports__.getBuildConfigEnvironment;
|
|
37
|
+
exports.resolveEffectTsgoCompiler = __webpack_exports__.resolveEffectTsgoCompiler;
|
|
38
|
+
exports.withBuildConfigEnvironment = __webpack_exports__.withBuildConfigEnvironment;
|
|
39
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
40
|
+
"getBuildConfigEnvironment",
|
|
41
|
+
"resolveEffectTsgoCompiler",
|
|
42
|
+
"withBuildConfigEnvironment"
|
|
43
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
44
|
+
Object.defineProperty(exports, '__esModule', {
|
|
45
|
+
value: true
|
|
46
|
+
});
|
|
@@ -73,7 +73,7 @@ const DEFAULT_SERVER_ONLY_PUBLIC_ASSET_EXCLUDES = [
|
|
|
73
73
|
];
|
|
74
74
|
const BFF_EFFECT_WORKER_ENTRY = `${WORKER_BUNDLE_DIRECTORY}/__modern_bff_effect.js`;
|
|
75
75
|
const BFF_EFFECT_WORKER_DISPATCHER_EXPORT = '__modern_create_effect_bff_dispatcher';
|
|
76
|
-
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/
|
|
76
|
+
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/bff-effect/effect-edge instead of lambda/Hono server helpers.';
|
|
77
77
|
const DEFAULT_COMPATIBILITY_DATE = '2026-06-02';
|
|
78
78
|
const COMPATIBILITY_DATE_PATTERN = /^\d{4}-\d{2}-\d{2}$/u;
|
|
79
79
|
const REQUIRED_COMPATIBILITY_FLAGS = external_cloudflare_output_contract_js_namespaceObject.CLOUDFLARE_REQUIRED_COMPATIBILITY_FLAGS;
|
|
@@ -42,8 +42,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
42
42
|
});
|
|
43
43
|
const external_node_path_namespaceObject = require("node:path");
|
|
44
44
|
var external_node_path_default = /*#__PURE__*/ __webpack_require__.n(external_node_path_namespaceObject);
|
|
45
|
+
const backend_federation_contracts_namespaceObject = require("@modern-js/backend-federation-contracts");
|
|
45
46
|
const utils_namespaceObject = require("@modern-js/utils");
|
|
46
|
-
const universal_namespaceObject = require("@modern-js/utils/universal");
|
|
47
47
|
const external_release_identity_js_namespaceObject = require("../release-identity.js");
|
|
48
48
|
const external_utils_js_namespaceObject = require("./utils.js");
|
|
49
49
|
const COMPACT_CONFIG_PATH = '.modernjs/ultramodern.json';
|
|
@@ -90,7 +90,7 @@ const resolveCompactApp = async (appDirectory)=>{
|
|
|
90
90
|
const resolvedAppDirectory = external_node_path_default().resolve(appDirectory);
|
|
91
91
|
const app = apps.find((candidate)=>{
|
|
92
92
|
if (!(0, external_utils_js_namespaceObject.isRecord)(candidate)) return false;
|
|
93
|
-
const appPath = (0,
|
|
93
|
+
const appPath = (0, backend_federation_contracts_namespaceObject.nonEmptyString)(candidate.path);
|
|
94
94
|
return void 0 !== appPath && external_node_path_default().resolve(workspaceRoot, appPath.replace(/^\.\/+/u, '')) === resolvedAppDirectory;
|
|
95
95
|
});
|
|
96
96
|
return {
|
|
@@ -101,7 +101,7 @@ const resolveCompactApp = async (appDirectory)=>{
|
|
|
101
101
|
};
|
|
102
102
|
};
|
|
103
103
|
const createDeliveryUnitStamp = (identity, app)=>{
|
|
104
|
-
const surfaceProfile = (0,
|
|
104
|
+
const surfaceProfile = (0, backend_federation_contracts_namespaceObject.nonEmptyString)(app?.surfaceProfile);
|
|
105
105
|
const emitsUi = 'api-only' !== surfaceProfile;
|
|
106
106
|
const emitsApi = 'ui-only' !== surfaceProfile;
|
|
107
107
|
return {
|
|
@@ -125,21 +125,21 @@ const createDeliveryUnitStamp = (identity, app)=>{
|
|
|
125
125
|
const resolveTopologyDeliveryUnit = async (appDirectory)=>{
|
|
126
126
|
const resolved = await resolveCompactApp(appDirectory);
|
|
127
127
|
if (!resolved?.app) return;
|
|
128
|
-
const identity = (0,
|
|
128
|
+
const identity = (0, backend_federation_contracts_namespaceObject.toDeliveryUnitIdentity)(resolved.app.deliveryUnit);
|
|
129
129
|
return identity ? createDeliveryUnitStamp(stampReleaseIdentity(identity, resolved.workspaceRoot), resolved.app) : void 0;
|
|
130
130
|
};
|
|
131
131
|
const resolveWorkerDeliveryUnitStamp = async (appDirectory)=>{
|
|
132
|
-
const buildArtifactPath = external_node_path_default().join(appDirectory,
|
|
133
|
-
const buildModulePath = external_node_path_default().join(appDirectory,
|
|
132
|
+
const buildArtifactPath = external_node_path_default().join(appDirectory, backend_federation_contracts_namespaceObject.ULTRAMODERN_BUILD_ARTIFACT_PATH);
|
|
133
|
+
const buildModulePath = external_node_path_default().join(appDirectory, backend_federation_contracts_namespaceObject.ULTRAMODERN_BUILD_MODULE_PATH);
|
|
134
134
|
let identity;
|
|
135
135
|
if (await utils_namespaceObject.fs.pathExists(buildArtifactPath)) {
|
|
136
136
|
const artifact = await utils_namespaceObject.fs.readJSON(buildArtifactPath);
|
|
137
|
-
if (!(0,
|
|
138
|
-
identity = (0,
|
|
137
|
+
if (!(0, backend_federation_contracts_namespaceObject.isUltramodernBuildArtifact)(artifact)) return;
|
|
138
|
+
identity = (0, backend_federation_contracts_namespaceObject.toDeliveryUnitIdentity)(artifact.deliveryUnit);
|
|
139
139
|
} else if (await utils_namespaceObject.fs.pathExists(buildModulePath)) {
|
|
140
140
|
console.warn(`[cloudflare] ${buildArtifactPath} missing; falling back to legacy regex parsing of ${buildModulePath}. Regenerate the workspace to emit ultramodern-build.json.`);
|
|
141
141
|
const source = await utils_namespaceObject.fs.readFile(buildModulePath, 'utf8');
|
|
142
|
-
identity = (0,
|
|
142
|
+
identity = (0, backend_federation_contracts_namespaceObject.toDeliveryUnitIdentity)({
|
|
143
143
|
buildMarker: source.match(/\bbuild:\s*['"]([^'"]+)['"]/u)?.[1],
|
|
144
144
|
unitId: source.match(/\bunitId:\s*['"]([^'"]+)['"]/u)?.[1],
|
|
145
145
|
sourceRevision: source.match(/\bsourceRevision:\s*['"]([^'"]+)['"]/u)?.[1]
|
|
@@ -30,7 +30,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30
30
|
__webpack_require__.d(__webpack_exports__, {
|
|
31
31
|
verifyDeliveryUnitIdentity: ()=>verifyDeliveryUnitIdentity
|
|
32
32
|
});
|
|
33
|
-
const
|
|
33
|
+
const backend_federation_contracts_namespaceObject = require("@modern-js/backend-federation-contracts");
|
|
34
34
|
const external_issues_js_namespaceObject = require("./issues.js");
|
|
35
35
|
const verifyDeliveryUnitIdentity = (issues, manifest, manifestPath, declared)=>{
|
|
36
36
|
const stamped = manifest?.deliveryUnit;
|
|
@@ -41,8 +41,8 @@ const verifyDeliveryUnitIdentity = (issues, manifest, manifestPath, declared)=>{
|
|
|
41
41
|
message: `Cloudflare worker manifest is missing the delivery-unit identity declared by the workspace topology (expected unitId ${declared.unitId}, buildMarker ${declared.buildMarker}).`,
|
|
42
42
|
path: manifestPath
|
|
43
43
|
});
|
|
44
|
-
for (const field of
|
|
45
|
-
const stampedValue = (0,
|
|
44
|
+
for (const field of backend_federation_contracts_namespaceObject.DELIVERY_UNIT_IDENTITY_FIELDS){
|
|
45
|
+
const stampedValue = (0, backend_federation_contracts_namespaceObject.deliveryUnitIdentityFieldValue)(stamped, field);
|
|
46
46
|
(0, external_issues_js_namespaceObject.assertEqual)(issues, stampedValue, declared[field], {
|
|
47
47
|
code: 'delivery-unit-drift',
|
|
48
48
|
message: `Cloudflare worker manifest deliveryUnit.${field} must match the topology delivery-unit record (expected ${declared[field]}, received ${stampedValue ?? 'undefined'}).`,
|
|
@@ -72,9 +72,9 @@ const verifyDeliveryUnitIdentity = (issues, manifest, manifestPath, declared)=>{
|
|
|
72
72
|
});
|
|
73
73
|
continue;
|
|
74
74
|
}
|
|
75
|
-
for (const field of
|
|
76
|
-
const markerValue = (0,
|
|
77
|
-
const stampedValue = (0,
|
|
75
|
+
for (const field of backend_federation_contracts_namespaceObject.DELIVERY_UNIT_IDENTITY_FIELDS){
|
|
76
|
+
const markerValue = (0, backend_federation_contracts_namespaceObject.deliveryUnitIdentityFieldValue)(marker, field);
|
|
77
|
+
const stampedValue = (0, backend_federation_contracts_namespaceObject.deliveryUnitIdentityFieldValue)(stamped, field);
|
|
78
78
|
(0, external_issues_js_namespaceObject.assertEqual)(issues, markerValue, stampedValue, {
|
|
79
79
|
code: 'delivery-unit-drift',
|
|
80
80
|
message: `Cloudflare worker manifest ${surface} surface deliveryUnit.${field} must derive from one delivery-unit record (expected ${stampedValue ?? 'undefined'}, received ${markerValue ?? 'undefined'}).`,
|
package/dist/cjs/config.js
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
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
|
+
})();
|
|
3
18
|
(()=>{
|
|
4
19
|
__webpack_require__.r = (exports1)=>{
|
|
5
20
|
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
@@ -12,7 +27,20 @@ var __webpack_require__ = {};
|
|
|
12
27
|
})();
|
|
13
28
|
var __webpack_exports__ = {};
|
|
14
29
|
__webpack_require__.r(__webpack_exports__);
|
|
15
|
-
|
|
30
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
31
|
+
getBuildConfigEnvironment: ()=>public_js_namespaceObject.getBuildConfigEnvironment,
|
|
32
|
+
resolveEffectTsgoCompiler: ()=>public_js_namespaceObject.resolveEffectTsgoCompiler,
|
|
33
|
+
withBuildConfigEnvironment: ()=>public_js_namespaceObject.withBuildConfigEnvironment
|
|
34
|
+
});
|
|
35
|
+
const public_js_namespaceObject = require("./build-config/public.js");
|
|
36
|
+
exports.getBuildConfigEnvironment = __webpack_exports__.getBuildConfigEnvironment;
|
|
37
|
+
exports.resolveEffectTsgoCompiler = __webpack_exports__.resolveEffectTsgoCompiler;
|
|
38
|
+
exports.withBuildConfigEnvironment = __webpack_exports__.withBuildConfigEnvironment;
|
|
39
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
40
|
+
"getBuildConfigEnvironment",
|
|
41
|
+
"resolveEffectTsgoCompiler",
|
|
42
|
+
"withBuildConfigEnvironment"
|
|
43
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
16
44
|
Object.defineProperty(exports, '__esModule', {
|
|
17
45
|
value: true
|
|
18
46
|
});
|