@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/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
- updateConventionCompiledPaths(conventionsMap.svelte, svelteConventionSources, svelteConvResult.svelteServerPaths);
172142
- updateConventionCompiledPaths(conventionsMap.vue, vueConventionSources, vueConvResult.vueServerPaths);
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 = [
@@ -172399,30 +172407,13 @@ ${content.slice(firstUseIdx)}`;
172399
172407
  ...cssOutputs
172400
172408
  ], buildPath)
172401
172409
  };
172402
- const conventionCompiledToBundled = new Map;
172403
- const conventionBaseNames = new Set(conventionServerPaths.map((p) => basename6(p).replace(/\.[^.]+$/, "")));
172404
172410
  for (const artifact of serverOutputs) {
172405
172411
  const fileWithHash = basename6(artifact.path);
172406
172412
  const [baseName] = fileWithHash.split(`.${artifact.hash}.`);
172407
172413
  if (!baseName)
172408
172414
  continue;
172409
- if (conventionBaseNames.has(baseName)) {
172410
- for (const compiledPath of conventionServerPaths) {
172411
- const compiledBase = basename6(compiledPath).replace(/\.[^.]+$/, "");
172412
- if (compiledBase === baseName) {
172413
- conventionCompiledToBundled.set(compiledPath, artifact.path);
172414
- }
172415
- }
172416
- continue;
172417
- }
172418
172415
  manifest[toPascal(baseName)] = artifact.path;
172419
172416
  }
172420
- if (conventionCompiledToBundled.size > 0) {
172421
- const compiledPaths = [...conventionCompiledToBundled.keys()];
172422
- const bundledPaths = compiledPaths.map((p) => conventionCompiledToBundled.get(p) ?? p);
172423
- updateConventionCompiledPaths(conventionsMap.svelte, compiledPaths, bundledPaths);
172424
- updateConventionCompiledPaths(conventionsMap.vue, compiledPaths, bundledPaths);
172425
- }
172426
172417
  const htmlOrHtmlCssChanged = !isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/html/") && (f.endsWith(".html") || f.endsWith(".css")));
172427
172418
  const htmxOrHtmxCssChanged = !isIncremental || normalizedIncrementalFiles?.some((f) => f.includes("/htmx/") && (f.endsWith(".html") || f.endsWith(".css")));
172428
172419
  const shouldCopyHtml = htmlOrHtmlCssChanged;
@@ -177046,5 +177037,5 @@ export {
177046
177037
  build
177047
177038
  };
177048
177039
 
177049
- //# debugId=85B3F945BCC198B964756E2164756E21
177040
+ //# debugId=F8B66B6F3A51731C64756E2164756E21
177050
177041
  //# sourceMappingURL=build.js.map