@absolutejs/absolute 0.19.0-beta.106 → 0.19.0-beta.107
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 +1 -27
- package/dist/build.js.map +4 -4
- package/dist/dev/client/reactRefreshSetup.ts +14 -0
- package/dist/index.js +4 -29
- package/dist/index.js.map +5 -5
- package/dist/react/index.js +4 -3
- package/dist/react/index.js.map +3 -3
- package/package.json +1 -1
package/dist/build.js
CHANGED
|
@@ -171561,20 +171561,6 @@ var isDev, extractBuildError = (logs, pass, label, frameworkNames, isIncremental
|
|
|
171561
171561
|
}
|
|
171562
171562
|
const reactClientLogs = reactClientResult?.logs ?? [];
|
|
171563
171563
|
const reactClientOutputs = reactClientResult?.outputs ?? [];
|
|
171564
|
-
if (hmr && reactClientOutputs.length > 0) {
|
|
171565
|
-
console.log(`[build] stripping refresh noop from ${reactClientOutputs.filter((o) => o.kind === "entry-point").length} entry points`);
|
|
171566
|
-
const REFRESH_NOOP = "window.$RefreshReg$||(window.$RefreshReg$=function(){});window.$RefreshSig$||(window.$RefreshSig$=function(){return function(t){return t}});";
|
|
171567
|
-
for (const output of reactClientOutputs) {
|
|
171568
|
-
if (output.kind !== "entry-point")
|
|
171569
|
-
continue;
|
|
171570
|
-
try {
|
|
171571
|
-
const content = await Bun.file(output.path).text();
|
|
171572
|
-
if (content.includes(REFRESH_NOOP)) {
|
|
171573
|
-
writeFileSync3(output.path, content.replace(REFRESH_NOOP, "").replace(/^\n/, ""));
|
|
171574
|
-
}
|
|
171575
|
-
} catch {}
|
|
171576
|
-
}
|
|
171577
|
-
}
|
|
171578
171564
|
if (reactClientResult && !reactClientResult.success && reactClientLogs.length > 0) {
|
|
171579
171565
|
extractBuildError(reactClientLogs, "react-client", "React client", frameworkNames, isIncremental, throwOnError);
|
|
171580
171566
|
}
|
|
@@ -203498,18 +203484,6 @@ var moduleServerPromise, getModuleServer = () => moduleServerPromise, parseError
|
|
|
203498
203484
|
if (vendorPaths) {
|
|
203499
203485
|
await rewriteReactImports2(clientResult.outputs.map((art) => art.path), vendorPaths);
|
|
203500
203486
|
}
|
|
203501
|
-
const { readFileSync: readFs, writeFileSync: writeFs } = await import("fs");
|
|
203502
|
-
const REFRESH_NOOP = "window.$RefreshReg$||(window.$RefreshReg$=function(){});window.$RefreshSig$||(window.$RefreshSig$=function(){return function(t){return t}});";
|
|
203503
|
-
for (const output of clientResult.outputs) {
|
|
203504
|
-
if (output.kind !== "entry-point")
|
|
203505
|
-
continue;
|
|
203506
|
-
try {
|
|
203507
|
-
const content = readFs(output.path, "utf-8");
|
|
203508
|
-
if (content.includes(REFRESH_NOOP)) {
|
|
203509
|
-
writeFs(output.path, content.replace(REFRESH_NOOP, "").replace(/^\n/, ""));
|
|
203510
|
-
}
|
|
203511
|
-
} catch {}
|
|
203512
|
-
}
|
|
203513
203487
|
const clientManifest = generateManifest2(clientResult.outputs, buildDir);
|
|
203514
203488
|
Object.assign(state.manifest, clientManifest);
|
|
203515
203489
|
await populateAssetStore(state.assetStore, clientManifest, buildDir);
|
|
@@ -204933,5 +204907,5 @@ export {
|
|
|
204933
204907
|
build
|
|
204934
204908
|
};
|
|
204935
204909
|
|
|
204936
|
-
//# debugId=
|
|
204910
|
+
//# debugId=C820298FC4C29C7664756E2164756E21
|
|
204937
204911
|
//# sourceMappingURL=build.js.map
|