@absolutejs/absolute 0.19.0-beta.765 → 0.19.0-beta.766
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/cli/index.js +11 -11
- package/dist/src/cli/scripts/compile.d.ts +1 -0
- package/package.json +7 -7
package/dist/cli/index.js
CHANGED
|
@@ -878,6 +878,7 @@ var init_build = __esm(() => {
|
|
|
878
878
|
// src/cli/scripts/compile.ts
|
|
879
879
|
var exports_compile = {};
|
|
880
880
|
__export(exports_compile, {
|
|
881
|
+
shouldEmbedCompiledAsset: () => shouldEmbedCompiledAsset,
|
|
881
882
|
compile: () => compile
|
|
882
883
|
});
|
|
883
884
|
var {env: env3 } = globalThis.Bun;
|
|
@@ -951,7 +952,15 @@ var cliTag4 = (color, message) => `\x1B[2m${formatTimestamp()}\x1B[0m ${color}[c
|
|
|
951
952
|
return candidate;
|
|
952
953
|
}
|
|
953
954
|
return resolve8(import.meta.dir, "..", "..", "react", "jsxDevRuntimeCompat.js");
|
|
954
|
-
}, jsxDevRuntimeCompatPath2,
|
|
955
|
+
}, jsxDevRuntimeCompatPath2, shouldEmbedCompiledAsset = (relativePath, skip = new Set) => {
|
|
956
|
+
if (skip.has(relativePath))
|
|
957
|
+
return false;
|
|
958
|
+
if (relativePath.split(/[\\/]/).includes(".generated"))
|
|
959
|
+
return false;
|
|
960
|
+
if (relativePath.includes("/server/"))
|
|
961
|
+
return false;
|
|
962
|
+
return true;
|
|
963
|
+
}, generateEntrypoint = (distDir, serverEntry, prerenderMap, version2) => {
|
|
955
964
|
const allFiles = collectFiles2(distDir);
|
|
956
965
|
const serverBundleName = `${basename2(serverEntry).replace(/\.[^.]+$/, "")}.js`;
|
|
957
966
|
const skip = new Set([
|
|
@@ -959,16 +968,7 @@ var cliTag4 = (color, message) => `\x1B[2m${formatTimestamp()}\x1B[0m ${color}[c
|
|
|
959
968
|
"manifest.json",
|
|
960
969
|
"_compile_entrypoint.ts"
|
|
961
970
|
]);
|
|
962
|
-
const clientFiles = allFiles.filter((file) =>
|
|
963
|
-
const rel = relative(distDir, file);
|
|
964
|
-
if (skip.has(rel))
|
|
965
|
-
return false;
|
|
966
|
-
if (rel.includes(".generated"))
|
|
967
|
-
return false;
|
|
968
|
-
if (rel.includes("/server/"))
|
|
969
|
-
return false;
|
|
970
|
-
return true;
|
|
971
|
-
});
|
|
971
|
+
const clientFiles = allFiles.filter((file) => shouldEmbedCompiledAsset(relative(distDir, file), skip));
|
|
972
972
|
const imports = [];
|
|
973
973
|
const mappings = [];
|
|
974
974
|
clientFiles.forEach((filePath, idx) => {
|
package/package.json
CHANGED
|
@@ -187,12 +187,12 @@
|
|
|
187
187
|
"main": "./dist/index.js",
|
|
188
188
|
"name": "@absolutejs/absolute",
|
|
189
189
|
"optionalDependencies": {
|
|
190
|
-
"@absolutejs/native-darwin-arm64": "0.19.0-beta.
|
|
191
|
-
"@absolutejs/native-darwin-x64": "0.19.0-beta.
|
|
192
|
-
"@absolutejs/native-linux-arm64": "0.19.0-beta.
|
|
193
|
-
"@absolutejs/native-linux-x64": "0.19.0-beta.
|
|
194
|
-
"@absolutejs/native-windows-arm64": "0.19.0-beta.
|
|
195
|
-
"@absolutejs/native-windows-x64": "0.19.0-beta.
|
|
190
|
+
"@absolutejs/native-darwin-arm64": "0.19.0-beta.766",
|
|
191
|
+
"@absolutejs/native-darwin-x64": "0.19.0-beta.766",
|
|
192
|
+
"@absolutejs/native-linux-arm64": "0.19.0-beta.766",
|
|
193
|
+
"@absolutejs/native-linux-x64": "0.19.0-beta.766",
|
|
194
|
+
"@absolutejs/native-windows-arm64": "0.19.0-beta.766",
|
|
195
|
+
"@absolutejs/native-windows-x64": "0.19.0-beta.766"
|
|
196
196
|
},
|
|
197
197
|
"overrides": {
|
|
198
198
|
"@typescript-eslint/utils": "8.56.1"
|
|
@@ -349,5 +349,5 @@
|
|
|
349
349
|
]
|
|
350
350
|
}
|
|
351
351
|
},
|
|
352
|
-
"version": "0.19.0-beta.
|
|
352
|
+
"version": "0.19.0-beta.766"
|
|
353
353
|
}
|