@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.
@@ -2289,6 +2289,19 @@ var init_svelteServerModule = __esm(() => {
2289
2289
  });
2290
2290
  });
2291
2291
 
2292
+ // src/utils/vueCompiler.ts
2293
+ var createVueCompiler = async () => {
2294
+ const [compiler, typescript] = await Promise.all([
2295
+ import("@vue/compiler-sfc"),
2296
+ import("typescript")
2297
+ ]);
2298
+ compiler.registerTS?.(() => typescript);
2299
+ return compiler;
2300
+ }, compilerPromise, loadVueCompiler = () => {
2301
+ compilerPromise ??= createVueCompiler();
2302
+ return compilerPromise;
2303
+ };
2304
+
2292
2305
  // src/core/vueServerModule.ts
2293
2306
  import { existsSync as existsSync4, readFileSync as readFileSync4, realpathSync } from "fs";
2294
2307
  import { mkdir as mkdir3 } from "fs/promises";
@@ -2330,7 +2343,7 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
2330
2343
  const cachedModulePath = compiledModuleCache3.get(sourcePath);
2331
2344
  if (cachedModulePath)
2332
2345
  return cachedModulePath;
2333
- const compiler = await import("@vue/compiler-sfc");
2346
+ const compiler = await loadVueCompiler();
2334
2347
  const source = await Bun.file(sourcePath).text();
2335
2348
  const { descriptor } = compiler.parse(source, { filename: sourcePath });
2336
2349
  const componentId = Bun.hash(sourcePath).toString(BASE_36_RADIX).slice(0, ISLAND_COMPONENT_ID_LENGTH);
@@ -2677,5 +2690,5 @@ export {
2677
2690
  createIslandStore
2678
2691
  };
2679
2692
 
2680
- //# debugId=CA4043F7B4A3BE5F64756E2164756E21
2693
+ //# debugId=32E3EE6CF8F6516664756E2164756E21
2681
2694
  //# sourceMappingURL=index.js.map