veryfront 0.0.34 → 0.0.36
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/ai/index.js +500 -223
- package/dist/ai/index.js.map +4 -4
- package/dist/ai/react.js +1 -3
- package/dist/ai/react.js.map +2 -2
- package/dist/cli.js +1204 -3049
- package/dist/components.js +395 -260
- package/dist/components.js.map +4 -4
- package/dist/config.js +289 -10
- package/dist/config.js.map +4 -4
- package/dist/data.js +105 -12
- package/dist/data.js.map +3 -3
- package/dist/index.js +398 -258
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/config.js
CHANGED
|
@@ -320,6 +320,226 @@ var bundlerLogger = createLogger("BUNDLER");
|
|
|
320
320
|
var agentLogger = createLogger("AGENT");
|
|
321
321
|
var logger = createLogger("VERYFRONT");
|
|
322
322
|
|
|
323
|
+
// deno.json
|
|
324
|
+
var deno_default = {
|
|
325
|
+
name: "veryfront",
|
|
326
|
+
version: "0.0.36",
|
|
327
|
+
exclude: [
|
|
328
|
+
"npm/",
|
|
329
|
+
"dist/",
|
|
330
|
+
"coverage/",
|
|
331
|
+
"scripts/",
|
|
332
|
+
"examples/",
|
|
333
|
+
"tests/",
|
|
334
|
+
"src/cli/templates/files/"
|
|
335
|
+
],
|
|
336
|
+
exports: {
|
|
337
|
+
".": "./src/index.ts",
|
|
338
|
+
"./cli": "./src/cli/main.ts",
|
|
339
|
+
"./server": "./src/server/index.ts",
|
|
340
|
+
"./middleware": "./src/middleware/index.ts",
|
|
341
|
+
"./components": "./src/react/components/index.ts",
|
|
342
|
+
"./data": "./src/data/index.ts",
|
|
343
|
+
"./config": "./src/core/config/index.ts",
|
|
344
|
+
"./platform": "./src/platform/index.ts",
|
|
345
|
+
"./ai": "./src/ai/index.ts",
|
|
346
|
+
"./ai/client": "./src/ai/client.ts",
|
|
347
|
+
"./ai/react": "./src/ai/react/index.ts",
|
|
348
|
+
"./ai/primitives": "./src/ai/react/primitives/index.ts",
|
|
349
|
+
"./ai/components": "./src/ai/react/components/index.ts",
|
|
350
|
+
"./ai/production": "./src/ai/production/index.ts",
|
|
351
|
+
"./ai/dev": "./src/ai/dev/index.ts",
|
|
352
|
+
"./ai/workflow": "./src/ai/workflow/index.ts",
|
|
353
|
+
"./ai/workflow/react": "./src/ai/workflow/react/index.ts"
|
|
354
|
+
},
|
|
355
|
+
imports: {
|
|
356
|
+
"@veryfront": "./src/index.ts",
|
|
357
|
+
"@veryfront/": "./src/",
|
|
358
|
+
"@veryfront/ai": "./src/ai/index.ts",
|
|
359
|
+
"@veryfront/ai/": "./src/ai/",
|
|
360
|
+
"@veryfront/platform": "./src/platform/index.ts",
|
|
361
|
+
"@veryfront/platform/": "./src/platform/",
|
|
362
|
+
"@veryfront/types": "./src/core/types/index.ts",
|
|
363
|
+
"@veryfront/types/": "./src/core/types/",
|
|
364
|
+
"@veryfront/utils": "./src/core/utils/index.ts",
|
|
365
|
+
"@veryfront/utils/": "./src/core/utils/",
|
|
366
|
+
"@veryfront/middleware": "./src/middleware/index.ts",
|
|
367
|
+
"@veryfront/middleware/": "./src/middleware/",
|
|
368
|
+
"@veryfront/errors": "./src/core/errors/index.ts",
|
|
369
|
+
"@veryfront/errors/": "./src/core/errors/",
|
|
370
|
+
"@veryfront/config": "./src/core/config/index.ts",
|
|
371
|
+
"@veryfront/config/": "./src/core/config/",
|
|
372
|
+
"@veryfront/observability": "./src/observability/index.ts",
|
|
373
|
+
"@veryfront/observability/": "./src/observability/",
|
|
374
|
+
"@veryfront/routing": "./src/routing/index.ts",
|
|
375
|
+
"@veryfront/routing/": "./src/routing/",
|
|
376
|
+
"@veryfront/transforms": "./src/build/transforms/index.ts",
|
|
377
|
+
"@veryfront/transforms/": "./src/build/transforms/",
|
|
378
|
+
"@veryfront/data": "./src/data/index.ts",
|
|
379
|
+
"@veryfront/data/": "./src/data/",
|
|
380
|
+
"@veryfront/security": "./src/security/index.ts",
|
|
381
|
+
"@veryfront/security/": "./src/security/",
|
|
382
|
+
"@veryfront/components": "./src/react/components/index.ts",
|
|
383
|
+
"@veryfront/react": "./src/react/index.ts",
|
|
384
|
+
"@veryfront/react/": "./src/react/",
|
|
385
|
+
"@veryfront/html": "./src/html/index.ts",
|
|
386
|
+
"@veryfront/html/": "./src/html/",
|
|
387
|
+
"@veryfront/rendering": "./src/rendering/index.ts",
|
|
388
|
+
"@veryfront/rendering/": "./src/rendering/",
|
|
389
|
+
"@veryfront/build": "./src/build/index.ts",
|
|
390
|
+
"@veryfront/build/": "./src/build/",
|
|
391
|
+
"@veryfront/server": "./src/server/index.ts",
|
|
392
|
+
"@veryfront/server/": "./src/server/",
|
|
393
|
+
"@veryfront/modules": "./src/module-system/index.ts",
|
|
394
|
+
"@veryfront/modules/": "./src/module-system/",
|
|
395
|
+
"@veryfront/compat/console": "./src/platform/compat/console/index.ts",
|
|
396
|
+
"@veryfront/compat/": "./src/platform/compat/",
|
|
397
|
+
"std/": "https://deno.land/std@0.220.0/",
|
|
398
|
+
"@std/path": "https://deno.land/std@0.220.0/path/mod.ts",
|
|
399
|
+
"@std/testing/bdd.ts": "https://deno.land/std@0.220.0/testing/bdd.ts",
|
|
400
|
+
"@std/expect": "https://deno.land/std@0.220.0/expect/mod.ts",
|
|
401
|
+
csstype: "https://esm.sh/csstype@3.2.3",
|
|
402
|
+
"@types/react": "https://esm.sh/@types/react@18.3.27?deps=csstype@3.2.3",
|
|
403
|
+
"@types/react-dom": "https://esm.sh/@types/react-dom@18.3.7?deps=csstype@3.2.3",
|
|
404
|
+
react: "https://esm.sh/react@18.3.1",
|
|
405
|
+
"react-dom": "https://esm.sh/react-dom@18.3.1",
|
|
406
|
+
"react-dom/server": "https://esm.sh/react-dom@18.3.1/server",
|
|
407
|
+
"react-dom/client": "https://esm.sh/react-dom@18.3.1/client",
|
|
408
|
+
"react/jsx-runtime": "https://esm.sh/react@18.3.1/jsx-runtime",
|
|
409
|
+
"react/jsx-dev-runtime": "https://esm.sh/react@18.3.1/jsx-dev-runtime",
|
|
410
|
+
"@mdx-js/mdx": "https://esm.sh/@mdx-js/mdx@3.0.0?deps=react@18.3.1,react-dom@18.3.1",
|
|
411
|
+
"@mdx-js/react": "https://esm.sh/@mdx-js/react@3.0.0?deps=react@18.3.1,react-dom@18.3.1",
|
|
412
|
+
"unist-util-visit": "https://esm.sh/unist-util-visit@5.0.0",
|
|
413
|
+
"mdast-util-to-string": "https://esm.sh/mdast-util-to-string@4.0.0",
|
|
414
|
+
"github-slugger": "https://esm.sh/github-slugger@2.0.0",
|
|
415
|
+
"remark-gfm": "https://esm.sh/remark-gfm@4.0.1",
|
|
416
|
+
"remark-frontmatter": "https://esm.sh/remark-frontmatter@5.0.0",
|
|
417
|
+
"rehype-highlight": "https://esm.sh/rehype-highlight@7.0.2",
|
|
418
|
+
"rehype-slug": "https://esm.sh/rehype-slug@6.0.0",
|
|
419
|
+
esbuild: "https://deno.land/x/esbuild@v0.20.1/wasm.js",
|
|
420
|
+
"esbuild/mod.js": "https://deno.land/x/esbuild@v0.20.1/mod.js",
|
|
421
|
+
"es-module-lexer": "https://esm.sh/es-module-lexer@1.5.0",
|
|
422
|
+
zod: "https://esm.sh/zod@3.22.0",
|
|
423
|
+
"mime-types": "https://esm.sh/mime-types@2.1.35",
|
|
424
|
+
mdast: "https://esm.sh/@types/mdast@4.0.3",
|
|
425
|
+
hast: "https://esm.sh/@types/hast@3.0.3",
|
|
426
|
+
unist: "https://esm.sh/@types/unist@3.0.2",
|
|
427
|
+
unified: "https://esm.sh/unified@11.0.5?dts",
|
|
428
|
+
ai: "https://esm.sh/ai@5.0.76?deps=react@18.3.1,react-dom@18.3.1",
|
|
429
|
+
"ai/react": "https://esm.sh/@ai-sdk/react@2.0.59?deps=react@18.3.1,react-dom@18.3.1",
|
|
430
|
+
"@ai-sdk/react": "https://esm.sh/@ai-sdk/react@2.0.59?deps=react@18.3.1,react-dom@18.3.1",
|
|
431
|
+
"@ai-sdk/openai": "https://esm.sh/@ai-sdk/openai@2.0.1",
|
|
432
|
+
"@ai-sdk/anthropic": "https://esm.sh/@ai-sdk/anthropic@2.0.4",
|
|
433
|
+
unocss: "https://esm.sh/unocss@0.59.0",
|
|
434
|
+
"@unocss/core": "https://esm.sh/@unocss/core@0.59.0",
|
|
435
|
+
"@unocss/preset-wind": "https://esm.sh/@unocss/preset-wind@0.59.0",
|
|
436
|
+
redis: "npm:redis"
|
|
437
|
+
},
|
|
438
|
+
compilerOptions: {
|
|
439
|
+
jsx: "react-jsx",
|
|
440
|
+
jsxImportSource: "react",
|
|
441
|
+
strict: true,
|
|
442
|
+
noImplicitAny: true,
|
|
443
|
+
noUncheckedIndexedAccess: true,
|
|
444
|
+
types: [],
|
|
445
|
+
lib: [
|
|
446
|
+
"deno.window",
|
|
447
|
+
"dom",
|
|
448
|
+
"dom.iterable",
|
|
449
|
+
"dom.asynciterable",
|
|
450
|
+
"deno.ns"
|
|
451
|
+
]
|
|
452
|
+
},
|
|
453
|
+
tasks: {
|
|
454
|
+
setup: "deno run --allow-all scripts/setup.ts",
|
|
455
|
+
dev: "deno run --allow-all --no-lock --unstable-net --unstable-worker-options src/cli/main.ts dev",
|
|
456
|
+
build: "deno compile --allow-all --output ../../bin/veryfront src/cli/main.ts",
|
|
457
|
+
"build:npm": "deno run -A scripts/build-npm.ts",
|
|
458
|
+
release: "deno run -A scripts/release.ts",
|
|
459
|
+
test: "DENO_JOBS=1 deno test --parallel --fail-fast --allow-all --unstable-worker-options --unstable-net",
|
|
460
|
+
"test:unit": "DENO_JOBS=1 deno test --parallel --allow-all --v8-flags=--max-old-space-size=8192 --ignore=tests --unstable-worker-options --unstable-net",
|
|
461
|
+
"test:integration": "DENO_JOBS=1 deno test --parallel --fail-fast --allow-all tests --unstable-worker-options --unstable-net",
|
|
462
|
+
"test:coverage": "rm -rf coverage && DENO_JOBS=1 deno test --parallel --fail-fast --allow-all --coverage=coverage --unstable-worker-options --unstable-net || exit 1",
|
|
463
|
+
"test:coverage:unit": "rm -rf coverage && DENO_JOBS=1 deno test --parallel --fail-fast --allow-all --coverage=coverage --ignore=tests --unstable-worker-options --unstable-net || exit 1",
|
|
464
|
+
"test:coverage:integration": "rm -rf coverage && DENO_JOBS=1 deno test --parallel --fail-fast --allow-all --coverage=coverage tests --unstable-worker-options --unstable-net || exit 1",
|
|
465
|
+
"coverage:report": "deno coverage coverage --include=src/ --exclude=tests --exclude=src/**/*_test.ts --exclude=src/**/*_test.tsx --exclude=src/**/*.test.ts --exclude=src/**/*.test.tsx --lcov > coverage/lcov.info && deno run --allow-read scripts/check-coverage.ts 80",
|
|
466
|
+
"coverage:html": "deno coverage coverage --include=src/ --exclude=tests --exclude=src/**/*_test.ts --exclude=src/**/*_test.tsx --exclude=src/**/*.test.ts --exclude=src/**/*.test.tsx --html",
|
|
467
|
+
lint: "DENO_NO_PACKAGE_JSON=1 deno lint src/",
|
|
468
|
+
fmt: "deno fmt src/",
|
|
469
|
+
typecheck: "deno check src/index.ts src/cli/main.ts src/server/index.ts src/routing/api/index.ts src/rendering/index.ts src/platform/index.ts src/platform/adapters/index.ts src/build/index.ts src/build/production-build/index.ts src/build/transforms/index.ts src/core/config/index.ts src/core/utils/index.ts src/data/index.ts src/security/index.ts src/middleware/index.ts src/server/handlers/dev/index.ts src/server/handlers/request/api/index.ts src/rendering/cache/index.ts src/rendering/cache/stores/index.ts src/rendering/rsc/actions/index.ts src/html/index.ts src/module-system/index.ts",
|
|
470
|
+
"docs:check-links": "deno run -A scripts/check-doc-links.ts",
|
|
471
|
+
"lint:ban-console": "deno run --allow-read scripts/ban-console.ts",
|
|
472
|
+
"lint:ban-deep-imports": "deno run --allow-read scripts/ban-deep-imports.ts",
|
|
473
|
+
"lint:ban-internal-root-imports": "deno run --allow-read scripts/ban-internal-root-imports.ts",
|
|
474
|
+
"lint:check-awaits": "deno run --allow-read scripts/check-unawaited-promises.ts",
|
|
475
|
+
"lint:platform": "deno run --allow-read scripts/lint-platform-agnostic.ts",
|
|
476
|
+
"check:circular": "deno run -A jsr:@cunarist/deno-circular-deps src/index.ts"
|
|
477
|
+
},
|
|
478
|
+
lint: {
|
|
479
|
+
include: [
|
|
480
|
+
"src/**/*.ts",
|
|
481
|
+
"src/**/*.tsx"
|
|
482
|
+
],
|
|
483
|
+
exclude: [
|
|
484
|
+
"dist/",
|
|
485
|
+
"coverage/"
|
|
486
|
+
],
|
|
487
|
+
rules: {
|
|
488
|
+
tags: [
|
|
489
|
+
"recommended"
|
|
490
|
+
],
|
|
491
|
+
include: [
|
|
492
|
+
"ban-untagged-todo"
|
|
493
|
+
],
|
|
494
|
+
exclude: [
|
|
495
|
+
"no-explicit-any",
|
|
496
|
+
"no-process-global",
|
|
497
|
+
"no-console"
|
|
498
|
+
]
|
|
499
|
+
}
|
|
500
|
+
},
|
|
501
|
+
fmt: {
|
|
502
|
+
include: [
|
|
503
|
+
"src/**/*.ts",
|
|
504
|
+
"src/**/*.tsx"
|
|
505
|
+
],
|
|
506
|
+
exclude: [
|
|
507
|
+
"dist/",
|
|
508
|
+
"coverage/"
|
|
509
|
+
],
|
|
510
|
+
options: {
|
|
511
|
+
useTabs: false,
|
|
512
|
+
lineWidth: 100,
|
|
513
|
+
indentWidth: 2,
|
|
514
|
+
semiColons: true,
|
|
515
|
+
singleQuote: false,
|
|
516
|
+
proseWrap: "preserve"
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
// src/platform/compat/runtime.ts
|
|
522
|
+
var isDeno = typeof Deno !== "undefined";
|
|
523
|
+
var isNode = typeof globalThis.process !== "undefined" && globalThis.process?.versions?.node !== void 0;
|
|
524
|
+
var isBun = typeof globalThis.Bun !== "undefined";
|
|
525
|
+
var isCloudflare = typeof globalThis !== "undefined" && "caches" in globalThis && "WebSocketPair" in globalThis;
|
|
526
|
+
|
|
527
|
+
// src/platform/compat/process.ts
|
|
528
|
+
var nodeProcess = globalThis.process;
|
|
529
|
+
var hasNodeProcess2 = !!nodeProcess?.versions?.node;
|
|
530
|
+
function getEnv(key) {
|
|
531
|
+
if (isDeno) {
|
|
532
|
+
return process.env(key);
|
|
533
|
+
}
|
|
534
|
+
if (hasNodeProcess2) {
|
|
535
|
+
return nodeProcess.env[key];
|
|
536
|
+
}
|
|
537
|
+
return void 0;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
// src/core/utils/version.ts
|
|
541
|
+
var VERSION = getEnv("VERYFRONT_VERSION") || (typeof deno_default.version === "string" ? deno_default.version : "0.0.0");
|
|
542
|
+
|
|
323
543
|
// src/core/utils/constants/cdn.ts
|
|
324
544
|
var ESM_CDN_BASE = "https://esm.sh";
|
|
325
545
|
var REACT_VERSION_18_3 = "18.3.1";
|
|
@@ -353,6 +573,74 @@ function getReactImportMap(version = REACT_DEFAULT_VERSION) {
|
|
|
353
573
|
};
|
|
354
574
|
}
|
|
355
575
|
|
|
576
|
+
// src/core/utils/constants/server.ts
|
|
577
|
+
var INTERNAL_PREFIX = "/_veryfront";
|
|
578
|
+
var INTERNAL_PATH_PREFIXES = {
|
|
579
|
+
/** React Server Components endpoints */
|
|
580
|
+
RSC: `${INTERNAL_PREFIX}/rsc/`,
|
|
581
|
+
/** File system access endpoints (base64 encoded paths) */
|
|
582
|
+
FS: `${INTERNAL_PREFIX}/fs/`,
|
|
583
|
+
/** Virtual module system */
|
|
584
|
+
MODULES: `${INTERNAL_PREFIX}/modules/`,
|
|
585
|
+
/** Generated page modules */
|
|
586
|
+
PAGES: `${INTERNAL_PREFIX}/pages/`,
|
|
587
|
+
/** Data JSON endpoints */
|
|
588
|
+
DATA: `${INTERNAL_PREFIX}/data/`,
|
|
589
|
+
/** Library modules (AI SDK, etc.) */
|
|
590
|
+
LIB: `${INTERNAL_PREFIX}/lib/`,
|
|
591
|
+
/** Chunk assets */
|
|
592
|
+
CHUNKS: `${INTERNAL_PREFIX}/chunks/`,
|
|
593
|
+
/** Client component modules */
|
|
594
|
+
CLIENT: `${INTERNAL_PREFIX}/client/`
|
|
595
|
+
};
|
|
596
|
+
var INTERNAL_ENDPOINTS = {
|
|
597
|
+
// Development endpoints
|
|
598
|
+
HMR_RUNTIME: `${INTERNAL_PREFIX}/hmr-runtime.js`,
|
|
599
|
+
HMR: `${INTERNAL_PREFIX}/hmr.js`,
|
|
600
|
+
HYDRATE: `${INTERNAL_PREFIX}/hydrate.js`,
|
|
601
|
+
ERROR_OVERLAY: `${INTERNAL_PREFIX}/error-overlay.js`,
|
|
602
|
+
DEV_LOADER: `${INTERNAL_PREFIX}/dev-loader.js`,
|
|
603
|
+
CLIENT_LOG: `${INTERNAL_PREFIX}/log`,
|
|
604
|
+
// Production endpoints
|
|
605
|
+
CLIENT_JS: `${INTERNAL_PREFIX}/client.js`,
|
|
606
|
+
ROUTER_JS: `${INTERNAL_PREFIX}/router.js`,
|
|
607
|
+
PREFETCH_JS: `${INTERNAL_PREFIX}/prefetch.js`,
|
|
608
|
+
MANIFEST_JSON: `${INTERNAL_PREFIX}/manifest.json`,
|
|
609
|
+
APP_JS: `${INTERNAL_PREFIX}/app.js`,
|
|
610
|
+
// RSC endpoints
|
|
611
|
+
RSC_CLIENT: `${INTERNAL_PREFIX}/rsc/client.js`,
|
|
612
|
+
RSC_MANIFEST: `${INTERNAL_PREFIX}/rsc/manifest`,
|
|
613
|
+
RSC_STREAM: `${INTERNAL_PREFIX}/rsc/stream`,
|
|
614
|
+
RSC_PAYLOAD: `${INTERNAL_PREFIX}/rsc/payload`,
|
|
615
|
+
RSC_RENDER: `${INTERNAL_PREFIX}/rsc/render`,
|
|
616
|
+
RSC_PAGE: `${INTERNAL_PREFIX}/rsc/page`,
|
|
617
|
+
RSC_MODULE: `${INTERNAL_PREFIX}/rsc/module`,
|
|
618
|
+
RSC_DOM: `${INTERNAL_PREFIX}/rsc/dom.js`,
|
|
619
|
+
RSC_HYDRATOR: `${INTERNAL_PREFIX}/rsc/hydrator.js`,
|
|
620
|
+
RSC_HYDRATE_CLIENT: `${INTERNAL_PREFIX}/rsc/hydrate-client.js`,
|
|
621
|
+
// Library module endpoints
|
|
622
|
+
LIB_AI_REACT: `${INTERNAL_PREFIX}/lib/ai/react.js`,
|
|
623
|
+
LIB_AI_COMPONENTS: `${INTERNAL_PREFIX}/lib/ai/components.js`,
|
|
624
|
+
LIB_AI_PRIMITIVES: `${INTERNAL_PREFIX}/lib/ai/primitives.js`
|
|
625
|
+
};
|
|
626
|
+
var PROJECT_DIRS = {
|
|
627
|
+
/** Base veryfront internal directory */
|
|
628
|
+
ROOT: ".veryfront",
|
|
629
|
+
/** Cache directory for build artifacts, transforms, etc. */
|
|
630
|
+
CACHE: ".veryfront/cache",
|
|
631
|
+
/** KV store directory */
|
|
632
|
+
KV: ".veryfront/kv",
|
|
633
|
+
/** Log files directory */
|
|
634
|
+
LOGS: ".veryfront/logs",
|
|
635
|
+
/** Temporary files directory */
|
|
636
|
+
TMP: ".veryfront/tmp"
|
|
637
|
+
};
|
|
638
|
+
var DEFAULT_CACHE_DIR = PROJECT_DIRS.CACHE;
|
|
639
|
+
var DEV_SERVER_ENDPOINTS = {
|
|
640
|
+
HMR_RUNTIME: INTERNAL_ENDPOINTS.HMR_RUNTIME,
|
|
641
|
+
ERROR_OVERLAY: INTERNAL_ENDPOINTS.ERROR_OVERLAY
|
|
642
|
+
};
|
|
643
|
+
|
|
356
644
|
// src/core/config/loader.ts
|
|
357
645
|
function getDefaultImportMapForConfig() {
|
|
358
646
|
return { imports: getReactImportMap(REACT_DEFAULT_VERSION) };
|
|
@@ -379,7 +667,7 @@ var DEFAULT_CONFIG = {
|
|
|
379
667
|
}
|
|
380
668
|
},
|
|
381
669
|
cache: {
|
|
382
|
-
dir:
|
|
670
|
+
dir: DEFAULT_CACHE_DIR,
|
|
383
671
|
render: {
|
|
384
672
|
type: "memory",
|
|
385
673
|
ttl: void 0,
|
|
@@ -551,15 +839,6 @@ function clearConfigCache() {
|
|
|
551
839
|
cacheRevision++;
|
|
552
840
|
}
|
|
553
841
|
|
|
554
|
-
// src/platform/compat/runtime.ts
|
|
555
|
-
var isNode = typeof globalThis.process !== "undefined" && globalThis.process?.versions?.node !== void 0;
|
|
556
|
-
var isBun = typeof globalThis.Bun !== "undefined";
|
|
557
|
-
var isCloudflare = typeof globalThis !== "undefined" && "caches" in globalThis && "WebSocketPair" in globalThis;
|
|
558
|
-
|
|
559
|
-
// src/platform/compat/process.ts
|
|
560
|
-
var nodeProcess = globalThis.process;
|
|
561
|
-
var hasNodeProcess2 = !!nodeProcess?.versions?.node;
|
|
562
|
-
|
|
563
842
|
// src/core/config/define-config.ts
|
|
564
843
|
function defineConfig(config) {
|
|
565
844
|
return config;
|