@absolutejs/absolute 0.19.0-beta.222 → 0.19.0-beta.223
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/.absolutejs/vue-tsc.tsbuildinfo +1 -1
- package/dist/build.js +18 -32
- package/dist/build.js.map +3 -3
- package/dist/index.js +18 -32
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -172425,18 +172425,26 @@ ${content.slice(firstUseIdx)}`;
|
|
|
172425
172425
|
svelteConventionSources.length > 0 && svelteDir ? Promise.resolve().then(() => (init_compileSvelte(), exports_compileSvelte)).then((mod) => mod.compileSvelte(svelteConventionSources, svelteDir, new Map, false)) : { svelteServerPaths: [] },
|
|
172426
172426
|
vueConventionSources.length > 0 && vueDir ? Promise.resolve().then(() => (init_compileVue(), exports_compileVue)).then((mod) => mod.compileVue(vueConventionSources, vueDir, false)) : { vueServerPaths: [] }
|
|
172427
172427
|
]);
|
|
172428
|
-
|
|
172429
|
-
|
|
172428
|
+
const copyConventionFiles = (framework, sources, compiledPaths) => {
|
|
172429
|
+
const destDir = join15(buildPath, "conventions", framework);
|
|
172430
|
+
mkdirSync9(destDir, { recursive: true });
|
|
172431
|
+
const destPaths = [];
|
|
172432
|
+
for (const compiledPath of compiledPaths) {
|
|
172433
|
+
const dest = join15(destDir, basename7(compiledPath));
|
|
172434
|
+
copyFileSync(compiledPath, dest);
|
|
172435
|
+
destPaths.push(dest);
|
|
172436
|
+
}
|
|
172437
|
+
return destPaths;
|
|
172438
|
+
};
|
|
172439
|
+
const svelteDests = copyConventionFiles("svelte", svelteConventionSources, svelteConvResult.svelteServerPaths);
|
|
172440
|
+
const vueDests = copyConventionFiles("vue", vueConventionSources, vueConvResult.vueServerPaths);
|
|
172441
|
+
updateConventionCompiledPaths(conventionsMap2.svelte, svelteConventionSources, svelteDests);
|
|
172442
|
+
updateConventionCompiledPaths(conventionsMap2.vue, vueConventionSources, vueDests);
|
|
172430
172443
|
}
|
|
172431
|
-
const conventionServerPaths = [
|
|
172432
|
-
...collectConventionSourceFiles(conventionsMap2.svelte),
|
|
172433
|
-
...collectConventionSourceFiles(conventionsMap2.vue)
|
|
172434
|
-
];
|
|
172435
172444
|
const serverEntryPoints = [
|
|
172436
172445
|
...svelteServerPaths,
|
|
172437
172446
|
...vueServerPaths,
|
|
172438
|
-
...angularServerPaths
|
|
172439
|
-
...conventionServerPaths
|
|
172447
|
+
...angularServerPaths
|
|
172440
172448
|
];
|
|
172441
172449
|
const reactClientEntryPoints = [...reactEntries];
|
|
172442
172450
|
const allFrameworkDirs = [
|
|
@@ -172677,44 +172685,22 @@ ${content.slice(firstUseIdx)}`;
|
|
|
172677
172685
|
...cssLogs
|
|
172678
172686
|
];
|
|
172679
172687
|
outputLogs(allLogs);
|
|
172680
|
-
const conventionBaseNames = new Set(conventionServerPaths.map((p) => basename7(p).replace(/\.[^.]+$/, "")));
|
|
172681
|
-
const pageServerOutputs = serverOutputs.filter((artifact) => {
|
|
172682
|
-
const fileWithHash = basename7(artifact.path);
|
|
172683
|
-
const [baseName] = fileWithHash.split(`.${artifact.hash}.`);
|
|
172684
|
-
return !baseName || !conventionBaseNames.has(baseName);
|
|
172685
|
-
});
|
|
172686
172688
|
const manifest = {
|
|
172687
172689
|
...options?.baseManifest || {},
|
|
172688
172690
|
...generateManifest([
|
|
172689
|
-
...
|
|
172691
|
+
...serverOutputs,
|
|
172690
172692
|
...reactClientOutputs,
|
|
172691
172693
|
...nonReactClientOutputs,
|
|
172692
172694
|
...cssOutputs
|
|
172693
172695
|
], buildPath)
|
|
172694
172696
|
};
|
|
172695
|
-
const conventionCompiledToBundled = new Map;
|
|
172696
172697
|
for (const artifact of serverOutputs) {
|
|
172697
172698
|
const fileWithHash = basename7(artifact.path);
|
|
172698
172699
|
const [baseName] = fileWithHash.split(`.${artifact.hash}.`);
|
|
172699
172700
|
if (!baseName)
|
|
172700
172701
|
continue;
|
|
172701
|
-
if (conventionBaseNames.has(baseName)) {
|
|
172702
|
-
for (const compiledPath of conventionServerPaths) {
|
|
172703
|
-
const compiledBase = basename7(compiledPath).replace(/\.[^.]+$/, "");
|
|
172704
|
-
if (compiledBase === baseName) {
|
|
172705
|
-
conventionCompiledToBundled.set(compiledPath, artifact.path);
|
|
172706
|
-
}
|
|
172707
|
-
}
|
|
172708
|
-
continue;
|
|
172709
|
-
}
|
|
172710
172702
|
manifest[toPascal(baseName)] = artifact.path;
|
|
172711
172703
|
}
|
|
172712
|
-
if (conventionCompiledToBundled.size > 0) {
|
|
172713
|
-
const compiledPaths = [...conventionCompiledToBundled.keys()];
|
|
172714
|
-
const bundledPaths = compiledPaths.map((p) => conventionCompiledToBundled.get(p) ?? p);
|
|
172715
|
-
updateConventionCompiledPaths(conventionsMap2.svelte, compiledPaths, bundledPaths);
|
|
172716
|
-
updateConventionCompiledPaths(conventionsMap2.vue, compiledPaths, bundledPaths);
|
|
172717
|
-
}
|
|
172718
172704
|
const htmlOrHtmlCssChanged = !isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/html/") && (f.endsWith(".html") || f.endsWith(".css")));
|
|
172719
172705
|
const htmxOrHtmxCssChanged = !isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/htmx/") && (f.endsWith(".html") || f.endsWith(".css")));
|
|
172720
172706
|
const shouldCopyHtml = htmlOrHtmlCssChanged;
|
|
@@ -178342,5 +178328,5 @@ export {
|
|
|
178342
178328
|
ANGULAR_INIT_TIMEOUT_MS
|
|
178343
178329
|
};
|
|
178344
178330
|
|
|
178345
|
-
//# debugId=
|
|
178331
|
+
//# debugId=FE1792ADEC7373EA64756E2164756E21
|
|
178346
178332
|
//# sourceMappingURL=index.js.map
|