@absolutejs/absolute 0.19.0-beta.717 → 0.19.0-beta.719
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/angular/index.js +11 -2
- package/dist/angular/index.js.map +4 -4
- package/dist/angular/server.js +11 -2
- package/dist/angular/server.js.map +4 -4
- package/dist/build.js +13 -4
- package/dist/build.js.map +4 -4
- package/dist/index.js +15 -6
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/build.js
CHANGED
|
@@ -44164,7 +44164,16 @@ ${fields}
|
|
|
44164
44164
|
].join(", ")}`);
|
|
44165
44165
|
}
|
|
44166
44166
|
const original = await fs2.readFile(rawServerFile, "utf-8");
|
|
44167
|
-
const
|
|
44167
|
+
const detectExportedComponentClass = (source, fallback) => {
|
|
44168
|
+
const defaultMatch = source.match(/export\s+default\s+([A-Za-z_$][\w$]*)\s*;/);
|
|
44169
|
+
if (defaultMatch)
|
|
44170
|
+
return defaultMatch[1];
|
|
44171
|
+
const exportClassMatch = source.match(/export\s+(?:default\s+)?class\s+([A-Za-z_$][\w$]*)/);
|
|
44172
|
+
if (exportClassMatch)
|
|
44173
|
+
return exportClassMatch[1];
|
|
44174
|
+
return fallback;
|
|
44175
|
+
};
|
|
44176
|
+
const componentClassName = detectExportedComponentClass(original, `${toPascal(fileBase)}Component`);
|
|
44168
44177
|
const serverContentHash = Bun.hash(original).toString(BASE_36_RADIX);
|
|
44169
44178
|
const cachedWrapper = wrapperOutputCache.get(resolvedEntry);
|
|
44170
44179
|
const clientFile = join15(indexesDir, jsName);
|
|
@@ -49434,7 +49443,7 @@ __export(exports_devBuild, {
|
|
|
49434
49443
|
});
|
|
49435
49444
|
import { readdir as readdir4 } from "fs/promises";
|
|
49436
49445
|
import { statSync as statSync3 } from "fs";
|
|
49437
|
-
import {
|
|
49446
|
+
import { resolve as resolve32 } from "path";
|
|
49438
49447
|
var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
|
|
49439
49448
|
const configuredDirs = [
|
|
49440
49449
|
config.reactDirectory,
|
|
@@ -49444,7 +49453,7 @@ var FRAMEWORK_DIR_KEYS, collectDepVendorSourceDirs = (config) => {
|
|
|
49444
49453
|
config.htmlDirectory,
|
|
49445
49454
|
config.htmxDirectory
|
|
49446
49455
|
].filter((dir) => Boolean(dir));
|
|
49447
|
-
return Array.from(new Set(configuredDirs
|
|
49456
|
+
return Array.from(new Set(configuredDirs));
|
|
49448
49457
|
}, parseDirectoryConfig = (source) => {
|
|
49449
49458
|
const config = {};
|
|
49450
49459
|
const dirPattern = /(\w+Directory)\s*:\s*['"]([^'"]+)['"]/g;
|
|
@@ -49763,5 +49772,5 @@ export {
|
|
|
49763
49772
|
build
|
|
49764
49773
|
};
|
|
49765
49774
|
|
|
49766
|
-
//# debugId=
|
|
49775
|
+
//# debugId=EEC6828C2FD3553D64756E2164756E21
|
|
49767
49776
|
//# sourceMappingURL=build.js.map
|