@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
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** True only for a regular file. Vue's type resolver probes an import path as
|
|
2
|
+
* written before trying `<path>.ts` and `<path>/index.ts`, so answering true
|
|
3
|
+
* for a directory makes it read the directory and fail with EISDIR. */
|
|
4
|
+
export declare const isFile: (path: string) => boolean;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** True only in the temporary server used by build/start/compile to render pages.
|
|
2
|
+
* Guard background workers and irreversible startup effects with this check.
|
|
3
|
+
* Read at runtime: a compiled deployment is not a prerender process.
|
|
4
|
+
*/
|
|
5
|
+
export declare const isPrerendering: () => boolean;
|
package/dist/svelte/index.js
CHANGED
|
@@ -4331,6 +4331,11 @@ var init_angularServerModule = __esm(() => {
|
|
|
4331
4331
|
ANGULAR_SPECIFIER_RE = /["'](@angular\/[^"']+)["']/g;
|
|
4332
4332
|
});
|
|
4333
4333
|
|
|
4334
|
+
// src/utils/isFile.ts
|
|
4335
|
+
import { statSync } from "fs";
|
|
4336
|
+
var isFile = (path) => statSync(path, { throwIfNoEntry: false })?.isFile() ?? false;
|
|
4337
|
+
var init_isFile = () => {};
|
|
4338
|
+
|
|
4334
4339
|
// src/utils/vueCompiler.ts
|
|
4335
4340
|
var exports_vueCompiler = {};
|
|
4336
4341
|
__export(exports_vueCompiler, {
|
|
@@ -4349,7 +4354,7 @@ var createVueCompiler = async () => {
|
|
|
4349
4354
|
};
|
|
4350
4355
|
|
|
4351
4356
|
// src/core/vueServerModule.ts
|
|
4352
|
-
import {
|
|
4357
|
+
import { readFileSync as readFileSync4, realpathSync } from "fs";
|
|
4353
4358
|
import { mkdir as mkdir3 } from "fs/promises";
|
|
4354
4359
|
import { dirname as dirname4, join as join7, relative as relative4, resolve as resolve5 } from "path";
|
|
4355
4360
|
var {Transpiler } = globalThis.Bun;
|
|
@@ -4396,9 +4401,9 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
|
|
|
4396
4401
|
const hasScript = descriptor.script || descriptor.scriptSetup;
|
|
4397
4402
|
const compiledScript = hasScript ? compiler.compileScript(descriptor, {
|
|
4398
4403
|
fs: {
|
|
4399
|
-
fileExists:
|
|
4404
|
+
fileExists: isFile,
|
|
4400
4405
|
realpath: realpathSync,
|
|
4401
|
-
readFile: (file) =>
|
|
4406
|
+
readFile: (file) => isFile(file) ? readFileSync4(file, "utf-8") : undefined
|
|
4402
4407
|
},
|
|
4403
4408
|
id: componentId,
|
|
4404
4409
|
inlineTemplate: false
|
|
@@ -4443,6 +4448,7 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
|
|
|
4443
4448
|
};
|
|
4444
4449
|
var init_vueServerModule = __esm(() => {
|
|
4445
4450
|
init_constants();
|
|
4451
|
+
init_isFile();
|
|
4446
4452
|
serverCacheRoot3 = join7(process.cwd(), ".absolutejs", "islands", "vue");
|
|
4447
4453
|
compiledModuleCache3 = new Map;
|
|
4448
4454
|
transpiler2 = new Transpiler({ loader: "ts", target: "browser" });
|
|
@@ -5184,5 +5190,5 @@ export {
|
|
|
5184
5190
|
useIslandStore
|
|
5185
5191
|
};
|
|
5186
5192
|
|
|
5187
|
-
//# debugId=
|
|
5193
|
+
//# debugId=4751F1FBF20B796164756E2164756E21
|
|
5188
5194
|
//# sourceMappingURL=index.js.map
|