@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.
@@ -3681,6 +3681,19 @@ var init_svelteServerModule = __esm(() => {
3681
3681
  });
3682
3682
  });
3683
3683
 
3684
+ // src/utils/vueCompiler.ts
3685
+ var createVueCompiler = async () => {
3686
+ const [compiler, typescript] = await Promise.all([
3687
+ import("@vue/compiler-sfc"),
3688
+ import("typescript")
3689
+ ]);
3690
+ compiler.registerTS?.(() => typescript);
3691
+ return compiler;
3692
+ }, compilerPromise, loadVueCompiler = () => {
3693
+ compilerPromise ??= createVueCompiler();
3694
+ return compilerPromise;
3695
+ };
3696
+
3684
3697
  // src/core/vueServerModule.ts
3685
3698
  import { existsSync as existsSync4, readFileSync as readFileSync4, realpathSync } from "fs";
3686
3699
  import { mkdir as mkdir3 } from "fs/promises";
@@ -3722,7 +3735,7 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
3722
3735
  const cachedModulePath = compiledModuleCache3.get(sourcePath);
3723
3736
  if (cachedModulePath)
3724
3737
  return cachedModulePath;
3725
- const compiler = await import("@vue/compiler-sfc");
3738
+ const compiler = await loadVueCompiler();
3726
3739
  const source = await Bun.file(sourcePath).text();
3727
3740
  const { descriptor } = compiler.parse(source, { filename: sourcePath });
3728
3741
  const componentId = Bun.hash(sourcePath).toString(BASE_36_RADIX).slice(0, ISLAND_COMPONENT_ID_LENGTH);
@@ -4612,5 +4625,5 @@ export {
4612
4625
  Island
4613
4626
  };
4614
4627
 
4615
- //# debugId=0230569758C05B8464756E2164756E21
4628
+ //# debugId=5F761E677419C86F64756E2164756E21
4616
4629
  //# sourceMappingURL=index.js.map