@absolutejs/absolute 0.19.0-beta.1111 → 0.19.0-beta.1113

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.
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-SIKu4q/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-GMMc0X/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -1,7 +1,7 @@
1
1
  // @bun
2
2
  var __require = import.meta.require;
3
3
 
4
- // .angular-partial-tmp-SIKu4q/src/core/streamingSlotRegistrar.ts
4
+ // .angular-partial-tmp-GMMc0X/src/core/streamingSlotRegistrar.ts
5
5
  var STREAMING_SLOT_REGISTRAR_KEY = Symbol.for("absolutejs.streamingSlotRegistrar");
6
6
  var STREAMING_SLOT_WARNING_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotWarningController");
7
7
  var STREAMING_SLOT_COLLECTION_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotCollectionController");
@@ -48,7 +48,7 @@ var warnMissingStreamingSlotCollector = (primitiveName) => {
48
48
  getWarningController()?.maybeWarn(primitiveName);
49
49
  };
50
50
 
51
- // .angular-partial-tmp-SIKu4q/src/core/streamingSlotRegistry.ts
51
+ // .angular-partial-tmp-GMMc0X/src/core/streamingSlotRegistry.ts
52
52
  var STREAMING_SLOT_STORAGE_KEY = Symbol.for("absolutejs.streamingSlotAsyncLocalStorage");
53
53
  var isObjectRecord2 = (value) => Boolean(value) && typeof value === "object";
54
54
  var isAsyncLocalStorage = (value) => isObjectRecord2(value) && ("getStore" in value) && typeof value.getStore === "function" && ("run" in value) && typeof value.run === "function";
@@ -2681,6 +2681,19 @@ var init_svelteServerModule = __esm(() => {
2681
2681
  });
2682
2682
  });
2683
2683
 
2684
+ // src/utils/vueCompiler.ts
2685
+ var createVueCompiler = async () => {
2686
+ const [compiler, typescript] = await Promise.all([
2687
+ import("@vue/compiler-sfc"),
2688
+ import("typescript")
2689
+ ]);
2690
+ compiler.registerTS?.(() => typescript);
2691
+ return compiler;
2692
+ }, compilerPromise, loadVueCompiler = () => {
2693
+ compilerPromise ??= createVueCompiler();
2694
+ return compilerPromise;
2695
+ };
2696
+
2684
2697
  // src/core/vueServerModule.ts
2685
2698
  import { existsSync as existsSync4, readFileSync as readFileSync4, realpathSync } from "fs";
2686
2699
  import { mkdir as mkdir3 } from "fs/promises";
@@ -2722,7 +2735,7 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
2722
2735
  const cachedModulePath = compiledModuleCache3.get(sourcePath);
2723
2736
  if (cachedModulePath)
2724
2737
  return cachedModulePath;
2725
- const compiler = await import("@vue/compiler-sfc");
2738
+ const compiler = await loadVueCompiler();
2726
2739
  const source = await Bun.file(sourcePath).text();
2727
2740
  const { descriptor } = compiler.parse(source, { filename: sourcePath });
2728
2741
  const componentId = Bun.hash(sourcePath).toString(BASE_36_RADIX).slice(0, ISLAND_COMPONENT_ID_LENGTH);
@@ -16215,5 +16228,5 @@ export {
16215
16228
  ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
16216
16229
  };
16217
16230
 
16218
- //# debugId=3DF09E6C6E9799AD64756E2164756E21
16231
+ //# debugId=0B08A2C1DE7AD36664756E2164756E21
16219
16232
  //# sourceMappingURL=index.js.map