@absolutejs/absolute 0.19.0-beta.653 → 0.19.0-beta.655

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/cli/index.js CHANGED
@@ -717,6 +717,20 @@ var cliTag3 = (color, message) => `\x1B[2m${formatTimestamp()}\x1B[0m ${color}[c
717
717
  return mod;
718
718
  }
719
719
  return;
720
+ }, resolveJsxDevRuntimeCompatPath2 = () => {
721
+ const candidates = [
722
+ resolve6(import.meta.dir, "..", "..", "dist", "react", "jsxDevRuntimeCompat.js"),
723
+ resolve6(import.meta.dir, "..", "..", "react", "jsxDevRuntimeCompat.js"),
724
+ resolve6(import.meta.dir, "..", "..", "react", "jsxDevRuntimeCompat.ts"),
725
+ resolve6(import.meta.dir, "..", "..", "..", "dist", "react", "jsxDevRuntimeCompat.js"),
726
+ resolve6(import.meta.dir, "..", "..", "..", "react", "jsxDevRuntimeCompat.js"),
727
+ resolve6(import.meta.dir, "..", "..", "..", "src", "react", "jsxDevRuntimeCompat.ts")
728
+ ];
729
+ for (const candidate of candidates) {
730
+ if (existsSync8(candidate))
731
+ return candidate;
732
+ }
733
+ return resolve6(import.meta.dir, "..", "..", "react", "jsxDevRuntimeCompat.js");
720
734
  }, jsxDevRuntimeCompatPath2, generateEntrypoint = (distDir, serverEntry, prerenderMap, version2) => {
721
735
  const allFiles = collectFiles2(distDir);
722
736
  const serverBundleName = `${basename2(serverEntry).replace(/\.[^.]+$/, "")}.js`;
@@ -934,7 +948,7 @@ var init_compile = __esm(() => {
934
948
  init_startupBanner();
935
949
  init_telemetryEvent();
936
950
  init_utils();
937
- jsxDevRuntimeCompatPath2 = resolve6(import.meta.dir, "..", "..", "react", "jsxDevRuntimeCompat.ts");
951
+ jsxDevRuntimeCompatPath2 = resolveJsxDevRuntimeCompatPath2();
938
952
  stubPlugin = {
939
953
  name: "stub-framework-sources",
940
954
  setup(bld) {
@@ -2118,7 +2132,22 @@ var handleBundleFailure = (serverBundle, bundleStart, serverEntry) => {
2118
2132
  console.error(cliTag2("\x1B[31m", "Server bundle failed."));
2119
2133
  process.exit(1);
2120
2134
  };
2121
- var jsxDevRuntimeCompatPath = resolve5(import.meta.dir, "..", "..", "react", "jsxDevRuntimeCompat.ts");
2135
+ var resolveJsxDevRuntimeCompatPath = () => {
2136
+ const candidates = [
2137
+ resolve5(import.meta.dir, "..", "..", "dist", "react", "jsxDevRuntimeCompat.js"),
2138
+ resolve5(import.meta.dir, "..", "..", "react", "jsxDevRuntimeCompat.js"),
2139
+ resolve5(import.meta.dir, "..", "..", "react", "jsxDevRuntimeCompat.ts"),
2140
+ resolve5(import.meta.dir, "..", "..", "..", "dist", "react", "jsxDevRuntimeCompat.js"),
2141
+ resolve5(import.meta.dir, "..", "..", "..", "react", "jsxDevRuntimeCompat.js"),
2142
+ resolve5(import.meta.dir, "..", "..", "..", "src", "react", "jsxDevRuntimeCompat.ts")
2143
+ ];
2144
+ for (const candidate of candidates) {
2145
+ if (existsSync7(candidate))
2146
+ return candidate;
2147
+ }
2148
+ return resolve5(import.meta.dir, "..", "..", "react", "jsxDevRuntimeCompat.js");
2149
+ };
2150
+ var jsxDevRuntimeCompatPath = resolveJsxDevRuntimeCompatPath();
2122
2151
  var prerenderStaticPages = async (outputPath, prerenderPort, resolvedOutdir, staticConfig, absoluteVersion, configPath2) => {
2123
2152
  const prerenderStart = performance.now();
2124
2153
  process.stdout.write(cliTag2("\x1B[36m", "Pre-rendering static pages"));
@@ -0,0 +1,95 @@
1
+ // @bun
2
+ var __create = Object.create;
3
+ var __getProtoOf = Object.getPrototypeOf;
4
+ var __defProp = Object.defineProperty;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ function __accessProp(key) {
9
+ return this[key];
10
+ }
11
+ var __toESMCache_node;
12
+ var __toESMCache_esm;
13
+ var __toESM = (mod, isNodeMode, target) => {
14
+ var canCache = mod != null && typeof mod === "object";
15
+ if (canCache) {
16
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
17
+ var cached = cache.get(mod);
18
+ if (cached)
19
+ return cached;
20
+ }
21
+ target = mod != null ? __create(__getProtoOf(mod)) : {};
22
+ const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
23
+ for (let key of __getOwnPropNames(mod))
24
+ if (!__hasOwnProp.call(to, key))
25
+ __defProp(to, key, {
26
+ get: __accessProp.bind(mod, key),
27
+ enumerable: true
28
+ });
29
+ if (canCache)
30
+ cache.set(mod, to);
31
+ return to;
32
+ };
33
+ var __toCommonJS = (from) => {
34
+ var entry = (__moduleCache ??= new WeakMap).get(from), desc;
35
+ if (entry)
36
+ return entry;
37
+ entry = __defProp({}, "__esModule", { value: true });
38
+ if (from && typeof from === "object" || typeof from === "function") {
39
+ for (var key of __getOwnPropNames(from))
40
+ if (!__hasOwnProp.call(entry, key))
41
+ __defProp(entry, key, {
42
+ get: __accessProp.bind(from, key),
43
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
44
+ });
45
+ }
46
+ __moduleCache.set(from, entry);
47
+ return entry;
48
+ };
49
+ var __moduleCache;
50
+ var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
51
+ var __returnValue = (v) => v;
52
+ function __exportSetter(name, newValue) {
53
+ this[name] = __returnValue.bind(null, newValue);
54
+ }
55
+ var __export = (target, all) => {
56
+ for (var name in all)
57
+ __defProp(target, name, {
58
+ get: all[name],
59
+ enumerable: true,
60
+ configurable: true,
61
+ set: __exportSetter.bind(all, name)
62
+ });
63
+ };
64
+ var __legacyDecorateClassTS = function(decorators, target, key, desc) {
65
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
66
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
67
+ r = Reflect.decorate(decorators, target, key, desc);
68
+ else
69
+ for (var i = decorators.length - 1;i >= 0; i--)
70
+ if (d = decorators[i])
71
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
72
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
73
+ };
74
+ var __legacyMetadataTS = (k, v) => {
75
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
76
+ return Reflect.metadata(k, v);
77
+ };
78
+ var __esm = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
79
+ var __require = import.meta.require;
80
+
81
+ // src/react/jsxDevRuntimeCompat.ts
82
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
83
+ var jsxDEV = (type, props, key, _isStaticChildren, _source, _self) => Array.isArray(props?.children) ? jsxs(type, props, key) : jsx(type, props, key);
84
+ var jsxDevRuntimeCompat_default = {
85
+ Fragment,
86
+ jsxDEV
87
+ };
88
+ export {
89
+ jsxDEV,
90
+ jsxDevRuntimeCompat_default as default,
91
+ Fragment
92
+ };
93
+
94
+ //# debugId=3174E656CBC734ED64756E2164756E21
95
+ //# sourceMappingURL=jsxDevRuntimeCompat.js.map
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/react/jsxDevRuntimeCompat.ts"],
4
+ "sourcesContent": [
5
+ "import { Fragment, jsx, jsxs } from 'react/jsx-runtime';\n\ntype JSXType = Parameters<typeof jsx>[0];\ntype JSXKey = Parameters<typeof jsx>[2];\ntype JSXProps = Record<string, unknown> | null | undefined;\n\nexport { Fragment };\n\nexport const jsxDEV = (\n\ttype: JSXType,\n\tprops: JSXProps,\n\tkey?: JSXKey,\n\t_isStaticChildren?: boolean,\n\t_source?: unknown,\n\t_self?: unknown\n) =>\n\tArray.isArray(props?.children)\n\t\t? jsxs(type, props as Parameters<typeof jsxs>[1], key)\n\t\t: jsx(type, props as Parameters<typeof jsx>[1], key);\n\nexport default {\n\tFragment,\n\tjsxDEV\n};\n"
6
+ ],
7
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAQO,IAAM,SAAS,CACrB,MACA,OACA,KACA,mBACA,SACA,UAEA,MAAM,QAAQ,OAAO,QAAQ,IAC1B,KAAK,MAAM,OAAqC,GAAG,IACnD,IAAI,MAAM,OAAoC,GAAG;AAErD,IAAe;AAAA,EACd;AAAA,EACA;AACD;",
8
+ "debugId": "3174E656CBC734ED64756E2164756E21",
9
+ "names": []
10
+ }
package/package.json CHANGED
@@ -302,5 +302,5 @@
302
302
  "typecheck": "bun run src/cli/index.ts typecheck --config example/absolute.config.ts"
303
303
  },
304
304
  "types": "./dist/src/index.d.ts",
305
- "version": "0.19.0-beta.653"
305
+ "version": "0.19.0-beta.655"
306
306
  }