@absolutejs/absolute 0.19.0-beta.86 → 0.19.0-beta.88

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
@@ -204356,21 +204356,13 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204356
204356
  };
204357
204357
  let manifest;
204358
204358
  if (hasNonComponentFiles && subprocessConfig) {
204359
- const absDir = resolve20(process.cwd(), ".absolutejs");
204360
- const tmpConfig = resolve20(absDir, "build-config.json");
204361
- const tmpScript = resolve20(absDir, "fresh-build.ts");
204362
- const { mkdirSync: mkdirSync9, writeFileSync: writeFileSync5 } = await import("fs");
204363
- mkdirSync9(absDir, { recursive: true });
204364
- writeFileSync5(tmpConfig, JSON.stringify(subprocessConfig));
204365
- const escapedConfig = tmpConfig.replace(/\\/g, "\\\\");
204366
- writeFileSync5(tmpScript, [
204367
- 'import { build } from "@absolutejs/absolute/build";',
204368
- `const config = JSON.parse(await Bun.file("${escapedConfig}").text());`,
204369
- "const manifest = await build(config);",
204370
- 'console.log("__MANIFEST__" + JSON.stringify(manifest));'
204371
- ].join(`
204372
- `));
204373
- const proc = Bun.spawn(["bun", "run", tmpScript], {
204359
+ const configJson = JSON.stringify(subprocessConfig);
204360
+ const proc = Bun.spawn([
204361
+ "bun",
204362
+ "-e",
204363
+ 'import{build}from"@absolutejs/absolute/build";const m=await build(JSON.parse(process.argv[1]));console.log("__MANIFEST__"+JSON.stringify(m))',
204364
+ configJson
204365
+ ], {
204374
204366
  cwd: process.cwd(),
204375
204367
  stderr: "pipe",
204376
204368
  stdout: "pipe"
@@ -204402,10 +204394,11 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204402
204394
  if (wasSubprocess) {
204403
204395
  const dataFile = (filesToRebuild ?? []).find((f) => f.endsWith(".ts") && !f.endsWith(".d.ts"));
204404
204396
  if (dataFile) {
204405
- state.lastHmrPath = relative9(process.cwd(), dataFile).replace(/\\/g, "/");
204406
- state.lastHmrFramework = "react";
204407
- logHmrUpdate(state.lastHmrPath, "react", duration);
204397
+ const path = relative9(process.cwd(), dataFile).replace(/\\/g, "/");
204398
+ logHmrUpdate(path, "react", duration);
204408
204399
  }
204400
+ state.lastHmrPath = undefined;
204401
+ state.lastHmrFramework = undefined;
204409
204402
  }
204410
204403
  sendTelemetryEvent("hmr:rebuild-complete", {
204411
204404
  durationMs: duration,
@@ -204426,7 +204419,8 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
204426
204419
  if (filesToRebuild && filesToRebuild.length > 0 && !wasSubprocess) {
204427
204420
  await handleFullBuildHMR(state, config, affectedFrameworks, filesToRebuild, manifest, duration);
204428
204421
  }
204429
- broadcastFrameworkUpdates(state, affectedFrameworks, filesToRebuild, manifest, startTime);
204422
+ if (!wasSubprocess)
204423
+ broadcastFrameworkUpdates(state, affectedFrameworks, filesToRebuild, manifest, startTime);
204430
204424
  if (affectedFrameworks.includes("angular")) {
204431
204425
  invalidateAngularSsrCache();
204432
204426
  }
@@ -204931,5 +204925,5 @@ export {
204931
204925
  build
204932
204926
  };
204933
204927
 
204934
- //# debugId=CFE9B3BDE37B859064756E2164756E21
204928
+ //# debugId=3BD1E70D757567BA64756E2164756E21
204935
204929
  //# sourceMappingURL=build.js.map