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

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.
@@ -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);
@@ -6779,5 +6792,5 @@ export {
6779
6792
  ABSOLUTE_HTTP_TRANSFER_CACHE_SKIP_HEADER
6780
6793
  };
6781
6794
 
6782
- //# debugId=A700872D32FA733D64756E2164756E21
6795
+ //# debugId=D2E84160F6E28D2864756E2164756E21
6783
6796
  //# sourceMappingURL=server.js.map