@absolutejs/absolute 0.20.0-beta.126 → 0.20.0-beta.127
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/CHANGELOG.md +9 -0
- package/README.md +19 -0
- package/changelog.json +16 -0
- package/dist/angular/components/core/streamingSlotRegistrar.js +1 -1
- package/dist/angular/components/core/streamingSlotRegistry.js +2 -2
- package/dist/angular/index.js +35 -29
- package/dist/angular/index.js.map +5 -4
- package/dist/angular/server.js +35 -29
- package/dist/angular/server.js.map +5 -4
- package/dist/build/buildWorker.js +9 -3
- package/dist/build.js +210 -201
- package/dist/build.js.map +8 -7
- package/dist/cli/{compile-smcnjyhb.js → compile-0epdbdcx.js} +1 -1
- package/dist/cli/{index-9q8yn5ax.js → index-54q7pxcx.js} +1 -0
- package/dist/cli/{index-fx42yxhy.js → index-79ppyst7.js} +1 -1
- package/dist/cli/index.js +4 -4
- package/dist/cli/{mobile-50c5tahh.js → mobile-49hyrgrj.js} +1 -1
- package/dist/cli/{prerender-vvrj9vjg.js → prerender-yex2zwj3.js} +1 -1
- package/dist/cli/{start-pdacfgcc.js → start-m0p0qbep.js} +1 -1
- package/dist/index.js +229 -217
- package/dist/index.js.map +11 -9
- package/dist/islands/index.js +10 -4
- package/dist/islands/index.js.map +5 -4
- package/dist/mobile/remoteMacAgentEntry.js +1 -1
- package/dist/react/index.js +10 -4
- package/dist/react/index.js.map +5 -4
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/isFile.d.ts +4 -0
- package/dist/src/utils/isPrerendering.d.ts +5 -0
- package/dist/svelte/index.js +10 -4
- package/dist/svelte/index.js.map +5 -4
- package/dist/vue/index.js +10 -4
- package/dist/vue/index.js.map +5 -4
- package/package.json +2 -2
package/dist/islands/index.js
CHANGED
|
@@ -2245,6 +2245,11 @@ var init_svelteServerModule = __esm(() => {
|
|
|
2245
2245
|
});
|
|
2246
2246
|
});
|
|
2247
2247
|
|
|
2248
|
+
// src/utils/isFile.ts
|
|
2249
|
+
import { statSync } from "fs";
|
|
2250
|
+
var isFile = (path) => statSync(path, { throwIfNoEntry: false })?.isFile() ?? false;
|
|
2251
|
+
var init_isFile = () => {};
|
|
2252
|
+
|
|
2248
2253
|
// src/utils/vueCompiler.ts
|
|
2249
2254
|
var exports_vueCompiler = {};
|
|
2250
2255
|
__export(exports_vueCompiler, {
|
|
@@ -2263,7 +2268,7 @@ var createVueCompiler = async () => {
|
|
|
2263
2268
|
};
|
|
2264
2269
|
|
|
2265
2270
|
// src/core/vueServerModule.ts
|
|
2266
|
-
import {
|
|
2271
|
+
import { readFileSync as readFileSync4, realpathSync } from "fs";
|
|
2267
2272
|
import { mkdir as mkdir3 } from "fs/promises";
|
|
2268
2273
|
import { dirname as dirname4, join as join7, relative as relative4, resolve as resolve5 } from "path";
|
|
2269
2274
|
var {Transpiler } = globalThis.Bun;
|
|
@@ -2310,9 +2315,9 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
|
|
|
2310
2315
|
const hasScript = descriptor.script || descriptor.scriptSetup;
|
|
2311
2316
|
const compiledScript = hasScript ? compiler.compileScript(descriptor, {
|
|
2312
2317
|
fs: {
|
|
2313
|
-
fileExists:
|
|
2318
|
+
fileExists: isFile,
|
|
2314
2319
|
realpath: realpathSync,
|
|
2315
|
-
readFile: (file) =>
|
|
2320
|
+
readFile: (file) => isFile(file) ? readFileSync4(file, "utf-8") : undefined
|
|
2316
2321
|
},
|
|
2317
2322
|
id: componentId,
|
|
2318
2323
|
inlineTemplate: false
|
|
@@ -2357,6 +2362,7 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
|
|
|
2357
2362
|
};
|
|
2358
2363
|
var init_vueServerModule = __esm(() => {
|
|
2359
2364
|
init_constants();
|
|
2365
|
+
init_isFile();
|
|
2360
2366
|
serverCacheRoot3 = join7(process.cwd(), ".absolutejs", "islands", "vue");
|
|
2361
2367
|
compiledModuleCache3 = new Map;
|
|
2362
2368
|
transpiler2 = new Transpiler({ loader: "ts", target: "browser" });
|
|
@@ -2634,5 +2640,5 @@ export {
|
|
|
2634
2640
|
renderIslandMarkup
|
|
2635
2641
|
};
|
|
2636
2642
|
|
|
2637
|
-
//# debugId=
|
|
2643
|
+
//# debugId=205BE03F223C1F8D64756E2164756E21
|
|
2638
2644
|
//# sourceMappingURL=index.js.map
|