@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/build.js
CHANGED
|
@@ -172138,18 +172138,26 @@ ${content.slice(firstUseIdx)}`;
|
|
|
172138
172138
|
svelteConventionSources.length > 0 && svelteDir ? Promise.resolve().then(() => (init_compileSvelte(), exports_compileSvelte)).then((mod) => mod.compileSvelte(svelteConventionSources, svelteDir, new Map, false)) : { svelteServerPaths: [] },
|
|
172139
172139
|
vueConventionSources.length > 0 && vueDir ? Promise.resolve().then(() => (init_compileVue(), exports_compileVue)).then((mod) => mod.compileVue(vueConventionSources, vueDir, false)) : { vueServerPaths: [] }
|
|
172140
172140
|
]);
|
|
172141
|
-
|
|
172142
|
-
|
|
172141
|
+
const copyConventionFiles = (framework, sources, compiledPaths) => {
|
|
172142
|
+
const destDir = join15(buildPath, "conventions", framework);
|
|
172143
|
+
mkdirSync9(destDir, { recursive: true });
|
|
172144
|
+
const destPaths = [];
|
|
172145
|
+
for (const compiledPath of compiledPaths) {
|
|
172146
|
+
const dest = join15(destDir, basename6(compiledPath));
|
|
172147
|
+
copyFileSync(compiledPath, dest);
|
|
172148
|
+
destPaths.push(dest);
|
|
172149
|
+
}
|
|
172150
|
+
return destPaths;
|
|
172151
|
+
};
|
|
172152
|
+
const svelteDests = copyConventionFiles("svelte", svelteConventionSources, svelteConvResult.svelteServerPaths);
|
|
172153
|
+
const vueDests = copyConventionFiles("vue", vueConventionSources, vueConvResult.vueServerPaths);
|
|
172154
|
+
updateConventionCompiledPaths(conventionsMap.svelte, svelteConventionSources, svelteDests);
|
|
172155
|
+
updateConventionCompiledPaths(conventionsMap.vue, vueConventionSources, vueDests);
|
|
172143
172156
|
}
|
|
172144
|
-
const conventionServerPaths = [
|
|
172145
|
-
...collectConventionSourceFiles(conventionsMap.svelte),
|
|
172146
|
-
...collectConventionSourceFiles(conventionsMap.vue)
|
|
172147
|
-
];
|
|
172148
172157
|
const serverEntryPoints = [
|
|
172149
172158
|
...svelteServerPaths,
|
|
172150
172159
|
...vueServerPaths,
|
|
172151
|
-
...angularServerPaths
|
|
172152
|
-
...conventionServerPaths
|
|
172160
|
+
...angularServerPaths
|
|
172153
172161
|
];
|
|
172154
172162
|
const reactClientEntryPoints = [...reactEntries];
|
|
172155
172163
|
const allFrameworkDirs = [
|
|
@@ -172390,44 +172398,22 @@ ${content.slice(firstUseIdx)}`;
|
|
|
172390
172398
|
...cssLogs
|
|
172391
172399
|
];
|
|
172392
172400
|
outputLogs(allLogs);
|
|
172393
|
-
const conventionBaseNames = new Set(conventionServerPaths.map((p) => basename6(p).replace(/\.[^.]+$/, "")));
|
|
172394
|
-
const pageServerOutputs = serverOutputs.filter((artifact) => {
|
|
172395
|
-
const fileWithHash = basename6(artifact.path);
|
|
172396
|
-
const [baseName] = fileWithHash.split(`.${artifact.hash}.`);
|
|
172397
|
-
return !baseName || !conventionBaseNames.has(baseName);
|
|
172398
|
-
});
|
|
172399
172401
|
const manifest = {
|
|
172400
172402
|
...options?.baseManifest || {},
|
|
172401
172403
|
...generateManifest([
|
|
172402
|
-
...
|
|
172404
|
+
...serverOutputs,
|
|
172403
172405
|
...reactClientOutputs,
|
|
172404
172406
|
...nonReactClientOutputs,
|
|
172405
172407
|
...cssOutputs
|
|
172406
172408
|
], buildPath)
|
|
172407
172409
|
};
|
|
172408
|
-
const conventionCompiledToBundled = new Map;
|
|
172409
172410
|
for (const artifact of serverOutputs) {
|
|
172410
172411
|
const fileWithHash = basename6(artifact.path);
|
|
172411
172412
|
const [baseName] = fileWithHash.split(`.${artifact.hash}.`);
|
|
172412
172413
|
if (!baseName)
|
|
172413
172414
|
continue;
|
|
172414
|
-
if (conventionBaseNames.has(baseName)) {
|
|
172415
|
-
for (const compiledPath of conventionServerPaths) {
|
|
172416
|
-
const compiledBase = basename6(compiledPath).replace(/\.[^.]+$/, "");
|
|
172417
|
-
if (compiledBase === baseName) {
|
|
172418
|
-
conventionCompiledToBundled.set(compiledPath, artifact.path);
|
|
172419
|
-
}
|
|
172420
|
-
}
|
|
172421
|
-
continue;
|
|
172422
|
-
}
|
|
172423
172415
|
manifest[toPascal(baseName)] = artifact.path;
|
|
172424
172416
|
}
|
|
172425
|
-
if (conventionCompiledToBundled.size > 0) {
|
|
172426
|
-
const compiledPaths = [...conventionCompiledToBundled.keys()];
|
|
172427
|
-
const bundledPaths = compiledPaths.map((p) => conventionCompiledToBundled.get(p) ?? p);
|
|
172428
|
-
updateConventionCompiledPaths(conventionsMap.svelte, compiledPaths, bundledPaths);
|
|
172429
|
-
updateConventionCompiledPaths(conventionsMap.vue, compiledPaths, bundledPaths);
|
|
172430
|
-
}
|
|
172431
172417
|
const htmlOrHtmlCssChanged = !isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/html/") && (f.endsWith(".html") || f.endsWith(".css")));
|
|
172432
172418
|
const htmxOrHtmxCssChanged = !isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/htmx/") && (f.endsWith(".html") || f.endsWith(".css")));
|
|
172433
172419
|
const shouldCopyHtml = htmlOrHtmlCssChanged;
|
|
@@ -177051,5 +177037,5 @@ export {
|
|
|
177051
177037
|
build
|
|
177052
177038
|
};
|
|
177053
177039
|
|
|
177054
|
-
//# debugId=
|
|
177040
|
+
//# debugId=F8B66B6F3A51731C64756E2164756E21
|
|
177055
177041
|
//# sourceMappingURL=build.js.map
|