@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.
package/dist/vue/index.js CHANGED
@@ -3921,6 +3921,19 @@ var init_svelteServerModule = __esm(() => {
3921
3921
  });
3922
3922
  });
3923
3923
 
3924
+ // src/utils/vueCompiler.ts
3925
+ var createVueCompiler = async () => {
3926
+ const [compiler, typescript] = await Promise.all([
3927
+ import("@vue/compiler-sfc"),
3928
+ import("typescript")
3929
+ ]);
3930
+ compiler.registerTS?.(() => typescript);
3931
+ return compiler;
3932
+ }, compilerPromise, loadVueCompiler = () => {
3933
+ compilerPromise ??= createVueCompiler();
3934
+ return compilerPromise;
3935
+ };
3936
+
3924
3937
  // src/core/vueServerModule.ts
3925
3938
  import { existsSync as existsSync7, readFileSync as readFileSync6, realpathSync } from "fs";
3926
3939
  import { mkdir as mkdir3 } from "fs/promises";
@@ -3962,7 +3975,7 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
3962
3975
  const cachedModulePath = compiledModuleCache3.get(sourcePath);
3963
3976
  if (cachedModulePath)
3964
3977
  return cachedModulePath;
3965
- const compiler = await import("@vue/compiler-sfc");
3978
+ const compiler = await loadVueCompiler();
3966
3979
  const source = await Bun.file(sourcePath).text();
3967
3980
  const { descriptor } = compiler.parse(source, { filename: sourcePath });
3968
3981
  const componentId = Bun.hash(sourcePath).toString(BASE_36_RADIX).slice(0, ISLAND_COMPONENT_ID_LENGTH);
@@ -5692,5 +5705,5 @@ export {
5692
5705
  Image
5693
5706
  };
5694
5707
 
5695
- //# debugId=B9A1F3D2F5BAB38B64756E2164756E21
5708
+ //# debugId=3D5E8C0832EDBE1164756E2164756E21
5696
5709
  //# sourceMappingURL=index.js.map