@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/.absolutejs/tsconfig.tsbuildinfo +1 -1
- package/dist/build.js +14 -20
- package/dist/build.js.map +3 -3
- package/dist/index.js +14 -20
- package/dist/index.js.map +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -204356,21 +204356,13 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
|
|
|
204356
204356
|
};
|
|
204357
204357
|
let manifest;
|
|
204358
204358
|
if (hasNonComponentFiles && subprocessConfig) {
|
|
204359
|
-
const
|
|
204360
|
-
const
|
|
204361
|
-
|
|
204362
|
-
|
|
204363
|
-
|
|
204364
|
-
|
|
204365
|
-
|
|
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
|
-
|
|
204406
|
-
|
|
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
|
-
|
|
204422
|
+
if (!wasSubprocess)
|
|
204423
|
+
broadcastFrameworkUpdates(state, affectedFrameworks, filesToRebuild, manifest, startTime);
|
|
204430
204424
|
if (affectedFrameworks.includes("angular")) {
|
|
204431
204425
|
invalidateAngularSsrCache();
|
|
204432
204426
|
}
|
|
@@ -205336,5 +205330,5 @@ export {
|
|
|
205336
205330
|
ANGULAR_INIT_TIMEOUT_MS
|
|
205337
205331
|
};
|
|
205338
205332
|
|
|
205339
|
-
//# debugId=
|
|
205333
|
+
//# debugId=74E1D8A2DDE19BE464756E2164756E21
|
|
205340
205334
|
//# sourceMappingURL=index.js.map
|