@absolutejs/absolute 0.19.0-beta.221 → 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 +17 -26
- package/dist/build.js.map +3 -3
- package/dist/index.js +17 -26
- 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 = [
|
|
@@ -172686,30 +172694,13 @@ ${content.slice(firstUseIdx)}`;
|
|
|
172686
172694
|
...cssOutputs
|
|
172687
172695
|
], buildPath)
|
|
172688
172696
|
};
|
|
172689
|
-
const conventionCompiledToBundled = new Map;
|
|
172690
|
-
const conventionBaseNames = new Set(conventionServerPaths.map((p) => basename7(p).replace(/\.[^.]+$/, "")));
|
|
172691
172697
|
for (const artifact of serverOutputs) {
|
|
172692
172698
|
const fileWithHash = basename7(artifact.path);
|
|
172693
172699
|
const [baseName] = fileWithHash.split(`.${artifact.hash}.`);
|
|
172694
172700
|
if (!baseName)
|
|
172695
172701
|
continue;
|
|
172696
|
-
if (conventionBaseNames.has(baseName)) {
|
|
172697
|
-
for (const compiledPath of conventionServerPaths) {
|
|
172698
|
-
const compiledBase = basename7(compiledPath).replace(/\.[^.]+$/, "");
|
|
172699
|
-
if (compiledBase === baseName) {
|
|
172700
|
-
conventionCompiledToBundled.set(compiledPath, artifact.path);
|
|
172701
|
-
}
|
|
172702
|
-
}
|
|
172703
|
-
continue;
|
|
172704
|
-
}
|
|
172705
172702
|
manifest[toPascal(baseName)] = artifact.path;
|
|
172706
172703
|
}
|
|
172707
|
-
if (conventionCompiledToBundled.size > 0) {
|
|
172708
|
-
const compiledPaths = [...conventionCompiledToBundled.keys()];
|
|
172709
|
-
const bundledPaths = compiledPaths.map((p) => conventionCompiledToBundled.get(p) ?? p);
|
|
172710
|
-
updateConventionCompiledPaths(conventionsMap2.svelte, compiledPaths, bundledPaths);
|
|
172711
|
-
updateConventionCompiledPaths(conventionsMap2.vue, compiledPaths, bundledPaths);
|
|
172712
|
-
}
|
|
172713
172704
|
const htmlOrHtmlCssChanged = !isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/html/") && (f.endsWith(".html") || f.endsWith(".css")));
|
|
172714
172705
|
const htmxOrHtmxCssChanged = !isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/htmx/") && (f.endsWith(".html") || f.endsWith(".css")));
|
|
172715
172706
|
const shouldCopyHtml = htmlOrHtmlCssChanged;
|
|
@@ -178337,5 +178328,5 @@ export {
|
|
|
178337
178328
|
ANGULAR_INIT_TIMEOUT_MS
|
|
178338
178329
|
};
|
|
178339
178330
|
|
|
178340
|
-
//# debugId=
|
|
178331
|
+
//# debugId=FE1792ADEC7373EA64756E2164756E21
|
|
178341
178332
|
//# sourceMappingURL=index.js.map
|