@absolutejs/absolute 0.19.0-beta.104 → 0.19.0-beta.106
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 +8 -10
- package/dist/build.js.map +4 -4
- package/dist/index.js +8 -10
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -171641,16 +171641,15 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
|
|
|
171641
171641
|
const reactClientLogs = reactClientResult?.logs ?? [];
|
|
171642
171642
|
const reactClientOutputs = reactClientResult?.outputs ?? [];
|
|
171643
171643
|
if (hmr && reactClientOutputs.length > 0) {
|
|
171644
|
-
|
|
171644
|
+
console.log(`[build] stripping refresh noop from ${reactClientOutputs.filter((o) => o.kind === "entry-point").length} entry points`);
|
|
171645
|
+
const REFRESH_NOOP = "window.$RefreshReg$||(window.$RefreshReg$=function(){});window.$RefreshSig$||(window.$RefreshSig$=function(){return function(t){return t}});";
|
|
171645
171646
|
for (const output of reactClientOutputs) {
|
|
171646
171647
|
if (output.kind !== "entry-point")
|
|
171647
171648
|
continue;
|
|
171648
171649
|
try {
|
|
171649
171650
|
const content = await Bun.file(output.path).text();
|
|
171650
|
-
if (
|
|
171651
|
-
|
|
171652
|
-
const stripped = content.replace(REFRESH_NOOP_RE, "");
|
|
171653
|
-
writeFileSync3(output.path, stripped);
|
|
171651
|
+
if (content.includes(REFRESH_NOOP)) {
|
|
171652
|
+
writeFileSync3(output.path, content.replace(REFRESH_NOOP, "").replace(/^\n/, ""));
|
|
171654
171653
|
}
|
|
171655
171654
|
} catch {}
|
|
171656
171655
|
}
|
|
@@ -203500,15 +203499,14 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
|
|
|
203500
203499
|
await rewriteReactImports2(clientResult.outputs.map((art) => art.path), vendorPaths);
|
|
203501
203500
|
}
|
|
203502
203501
|
const { readFileSync: readFs, writeFileSync: writeFs } = await import("fs");
|
|
203503
|
-
const
|
|
203502
|
+
const REFRESH_NOOP = "window.$RefreshReg$||(window.$RefreshReg$=function(){});window.$RefreshSig$||(window.$RefreshSig$=function(){return function(t){return t}});";
|
|
203504
203503
|
for (const output of clientResult.outputs) {
|
|
203505
203504
|
if (output.kind !== "entry-point")
|
|
203506
203505
|
continue;
|
|
203507
203506
|
try {
|
|
203508
203507
|
const content = readFs(output.path, "utf-8");
|
|
203509
|
-
if (
|
|
203510
|
-
|
|
203511
|
-
writeFs(output.path, content.replace(NOOP_RE, ""));
|
|
203508
|
+
if (content.includes(REFRESH_NOOP)) {
|
|
203509
|
+
writeFs(output.path, content.replace(REFRESH_NOOP, "").replace(/^\n/, ""));
|
|
203512
203510
|
}
|
|
203513
203511
|
} catch {}
|
|
203514
203512
|
}
|
|
@@ -205351,5 +205349,5 @@ export {
|
|
|
205351
205349
|
ANGULAR_INIT_TIMEOUT_MS
|
|
205352
205350
|
};
|
|
205353
205351
|
|
|
205354
|
-
//# debugId=
|
|
205352
|
+
//# debugId=2E32E9477B04367664756E2164756E21
|
|
205355
205353
|
//# sourceMappingURL=index.js.map
|