@absolutejs/absolute 0.19.0-beta.1079 → 0.19.0-beta.1080
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/index.js
CHANGED
|
@@ -37082,6 +37082,11 @@ var {build: bunBuild9, Glob: Glob10 } = globalThis.Bun;
|
|
|
37082
37082
|
var toSafeFileName6 = (specifier) => {
|
|
37083
37083
|
const prefix = specifier.startsWith("@") ? "_" : "";
|
|
37084
37084
|
return prefix + specifier.replace(/\//g, "_").replace(/@/g, "").replace(/-/g, "_");
|
|
37085
|
+
}, packageRootOf = (specifier) => {
|
|
37086
|
+
const parts = specifier.split("/");
|
|
37087
|
+
if (specifier.startsWith("@"))
|
|
37088
|
+
return parts.slice(0, 2).join("/") || specifier;
|
|
37089
|
+
return parts[0] ?? specifier;
|
|
37085
37090
|
}, isResolvable3 = (specifier) => {
|
|
37086
37091
|
try {
|
|
37087
37092
|
Bun.resolveSync(specifier, process.cwd());
|
|
@@ -37270,7 +37275,37 @@ var toSafeFileName6 = (specifier) => {
|
|
|
37270
37275
|
}
|
|
37271
37276
|
return lastResult;
|
|
37272
37277
|
};
|
|
37273
|
-
const
|
|
37278
|
+
const groups = new Map;
|
|
37279
|
+
for (const entry of entries) {
|
|
37280
|
+
const root = packageRootOf(entry.specifier);
|
|
37281
|
+
const list = groups.get(root) ?? [];
|
|
37282
|
+
list.push(entry);
|
|
37283
|
+
groups.set(root, list);
|
|
37284
|
+
}
|
|
37285
|
+
const buildPackageGroup = (groupEntries) => {
|
|
37286
|
+
const groupSpecs = new Set(groupEntries.map((entry) => entry.specifier));
|
|
37287
|
+
return bunBuild9({
|
|
37288
|
+
entrypoints: groupEntries.map((entry) => entry.entryPath),
|
|
37289
|
+
external: [
|
|
37290
|
+
...FRAMEWORK_EXTERNALS,
|
|
37291
|
+
...specifiers.filter((spec) => !groupSpecs.has(spec))
|
|
37292
|
+
],
|
|
37293
|
+
format: "esm",
|
|
37294
|
+
minify: false,
|
|
37295
|
+
naming: { chunk: "[name]-[hash].[ext]", entry: "[name].[ext]" },
|
|
37296
|
+
outdir: vendorDir,
|
|
37297
|
+
plugins: [createStripPureAnnotationsPlugin()],
|
|
37298
|
+
splitting: true,
|
|
37299
|
+
target: "browser",
|
|
37300
|
+
throw: false
|
|
37301
|
+
});
|
|
37302
|
+
};
|
|
37303
|
+
const results = await Promise.all(Array.from(groups.values()).map((groupEntries) => {
|
|
37304
|
+
const only = groupEntries[0];
|
|
37305
|
+
if (groupEntries.length === 1 && only)
|
|
37306
|
+
return buildEntryWithCjsRequireResolution(only.entryPath, only.specifier);
|
|
37307
|
+
return buildPackageGroup(groupEntries);
|
|
37308
|
+
}));
|
|
37274
37309
|
const aggregated = {
|
|
37275
37310
|
success: results.every((result) => result.success),
|
|
37276
37311
|
logs: results.flatMap((result) => result.logs),
|
|
@@ -46975,5 +47010,5 @@ export {
|
|
|
46975
47010
|
ANGULAR_INIT_TIMEOUT_MS
|
|
46976
47011
|
};
|
|
46977
47012
|
|
|
46978
|
-
//# debugId=
|
|
47013
|
+
//# debugId=D08EDC1FBDB79DA364756E2164756E21
|
|
46979
47014
|
//# sourceMappingURL=index.js.map
|