@absolutejs/absolute 0.19.0-beta.1124 → 0.19.0-beta.1126

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
@@ -19452,7 +19452,7 @@ var init_fastHmrCompiler = __esm(() => {
19452
19452
 
19453
19453
  // node_modules/content-tag/pkg/node/content_tag.cjs
19454
19454
  var require_content_tag = __commonJS((exports, module) => {
19455
- var __dirname = "/tmp/absolutejs-1124-gate.HCTVoE/node_modules/content-tag/pkg/node";
19455
+ var __dirname = "/home/alexkahn/abs/absolutejs/node_modules/content-tag/pkg/node";
19456
19456
  var imports = {};
19457
19457
  imports["__wbindgen_placeholder__"] = exports;
19458
19458
  var wasm;
@@ -21714,9 +21714,10 @@ ${content.slice(firstUseIdx)}`;
21714
21714
  ...vueIndexPaths,
21715
21715
  ...vueClientPaths,
21716
21716
  ...skipAngularClientBundle ? [] : angularClientPaths,
21717
- ...islandBootstrapPath ? [islandBootstrapPath] : [],
21718
- ...urlReferencedFiles
21717
+ ...islandBootstrapPath ? [islandBootstrapPath] : []
21719
21718
  ];
21719
+ const [onlyWorkerClientEntry] = urlReferencedFiles;
21720
+ const workerClientRoot = urlReferencedFiles.length === 1 && onlyWorkerClientEntry ? dirname19(onlyWorkerClientEntry) : commonAncestor(urlReferencedFiles.map((file4) => dirname19(file4)), projectRoot);
21720
21721
  const islandEntryResult = islandBuildInfo ? await tracePhase("islands/client-entry-generation", () => generateIslandEntryPoints({
21721
21722
  buildInfo: islandBuildInfo,
21722
21723
  buildPath,
@@ -21730,7 +21731,7 @@ ${content.slice(firstUseIdx)}`;
21730
21731
  generatedRoot: join36(buildPath, "_island_entries")
21731
21732
  };
21732
21733
  const islandClientEntryPoints = islandEntryResult.entries.map((entry) => entry.entryPath);
21733
- if (serverEntryPoints.length === 0 && reactClientEntryPoints.length === 0 && nonReactClientEntryPoints.length === 0 && islandClientEntryPoints.length === 0 && htmxDir === undefined && htmlDir === undefined) {
21734
+ if (serverEntryPoints.length === 0 && reactClientEntryPoints.length === 0 && nonReactClientEntryPoints.length === 0 && urlReferencedFiles.length === 0 && islandClientEntryPoints.length === 0 && htmxDir === undefined && htmlDir === undefined) {
21734
21735
  logWarn("No entry points found, manifest will be empty");
21735
21736
  sendTelemetryEvent("build:empty", {
21736
21737
  configuredDirs: {
@@ -21894,6 +21895,7 @@ ${content.slice(firstUseIdx)}`;
21894
21895
  serverResult,
21895
21896
  reactClientResult,
21896
21897
  nonReactClientResult,
21898
+ workerClientResult,
21897
21899
  islandClientResult,
21898
21900
  globalCssResult,
21899
21901
  vueCssResult
@@ -21949,6 +21951,22 @@ ${content.slice(firstUseIdx)}`;
21949
21951
  throw: false,
21950
21952
  tsconfig: "./tsconfig.json"
21951
21953
  }, resolveBunBuildOverride(bunBuildConfig, "nonReactClient")))) : undefined,
21954
+ urlReferencedFiles.length > 0 ? tracePhase("bun/worker-client", () => bunBuild7(mergeBunBuildConfig({
21955
+ conditions: svelteResolveConditions,
21956
+ entrypoints: urlReferencedFiles,
21957
+ external: Object.keys(nonReactExternalPaths),
21958
+ format: "esm",
21959
+ minify: !isDev2,
21960
+ naming: `[dir]/[name].[hash].[ext]`,
21961
+ outdir: buildPath,
21962
+ plugins: [stylePreprocessorPlugin2],
21963
+ root: workerClientRoot,
21964
+ sourcemap: resolveClientSourcemap(sourcemaps, isDev2),
21965
+ splitting: !isDev2,
21966
+ target: "browser",
21967
+ throw: false,
21968
+ tsconfig: "./tsconfig.json"
21969
+ }, resolveBunBuildOverride(bunBuildConfig, "nonReactClient")))) : undefined,
21952
21970
  islandClientEntryPoints.length > 0 ? tracePhase("bun/island-client", () => bunBuild7(mergeBunBuildConfig({
21953
21971
  conditions: svelteResolveConditions,
21954
21972
  define: vueDirectory ? vueFeatureFlags : undefined,
@@ -22046,8 +22064,14 @@ ${content.slice(firstUseIdx)}`;
22046
22064
  if (hmr && reactClientOutputPaths.length > 0) {
22047
22065
  await tracePhase("postprocess/react-refresh-globals", () => patchRefreshGlobals(reactClientOutputPaths));
22048
22066
  }
22049
- const nonReactClientLogs = nonReactClientResult?.logs ?? [];
22050
- const nonReactClientOutputs = nonReactClientResult?.outputs ?? [];
22067
+ const nonReactClientLogs = [
22068
+ ...nonReactClientResult?.logs ?? [],
22069
+ ...workerClientResult?.logs ?? []
22070
+ ];
22071
+ const nonReactClientOutputs = [
22072
+ ...nonReactClientResult?.outputs ?? [],
22073
+ ...workerClientResult?.outputs ?? []
22074
+ ];
22051
22075
  const nonReactClientOutputPaths = nonReactClientOutputs.map((artifact) => artifact.path);
22052
22076
  const islandClientLogs = islandClientResult?.logs ?? [];
22053
22077
  const islandClientOutputs = islandClientResult?.outputs ?? [];
@@ -22064,7 +22088,7 @@ ${content.slice(firstUseIdx)}`;
22064
22088
  if (hmr && islandClientOutputPaths.length > 0) {
22065
22089
  await tracePhase("postprocess/island-refresh-globals", () => patchRefreshGlobals(islandClientOutputPaths));
22066
22090
  }
22067
- if (nonReactClientResult && !nonReactClientResult.success && nonReactClientLogs.length > 0) {
22091
+ if ((nonReactClientResult && !nonReactClientResult.success || workerClientResult && !workerClientResult.success) && nonReactClientLogs.length > 0) {
22068
22092
  handlePassFailure(nonReactClientLogs, "non-react-client", "Non-React client");
22069
22093
  }
22070
22094
  if (islandClientResult && !islandClientResult.success && islandClientLogs.length > 0) {
@@ -29161,5 +29185,5 @@ export {
29161
29185
  build
29162
29186
  };
29163
29187
 
29164
- //# debugId=DE80494906725CA364756E2164756E21
29188
+ //# debugId=C3A2516E366CE52964756E2164756E21
29165
29189
  //# sourceMappingURL=build.js.map