@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,8 +1,9 @@
1
- import type { WorkspaceConfig } from '../../../types/build';
1
+ import type { ServiceConfig, WorkspaceConfig } from '../../../types/build';
2
2
  type WorkspaceDevOptions = {
3
3
  configPath?: string;
4
4
  noTui?: boolean;
5
5
  };
6
+ export declare const resolveWorkspaceServicePort: (service: ServiceConfig, env: Record<string, string>) => number;
6
7
  export declare const findSharedWorkspaceBuildDirectories: (services: WorkspaceConfig) => {
7
8
  buildDirectory: string;
8
9
  names: string[];
@@ -0,0 +1 @@
1
+ export declare const loadVueCompiler: () => Promise<typeof import("@vue/compiler-sfc")>;
@@ -3693,6 +3693,19 @@ var init_angularServerModule = __esm(() => {
3693
3693
  ANGULAR_SPECIFIER_RE = /["'](@angular\/[^"']+)["']/g;
3694
3694
  });
3695
3695
 
3696
+ // src/utils/vueCompiler.ts
3697
+ var createVueCompiler = async () => {
3698
+ const [compiler, typescript] = await Promise.all([
3699
+ import("@vue/compiler-sfc"),
3700
+ import("typescript")
3701
+ ]);
3702
+ compiler.registerTS?.(() => typescript);
3703
+ return compiler;
3704
+ }, compilerPromise, loadVueCompiler = () => {
3705
+ compilerPromise ??= createVueCompiler();
3706
+ return compilerPromise;
3707
+ };
3708
+
3696
3709
  // src/core/vueServerModule.ts
3697
3710
  import { existsSync as existsSync4, readFileSync as readFileSync4, realpathSync } from "fs";
3698
3711
  import { mkdir as mkdir3 } from "fs/promises";
@@ -3734,7 +3747,7 @@ var ISLAND_COMPONENT_ID_LENGTH = 8, serverCacheRoot3, compiledModuleCache3, tran
3734
3747
  const cachedModulePath = compiledModuleCache3.get(sourcePath);
3735
3748
  if (cachedModulePath)
3736
3749
  return cachedModulePath;
3737
- const compiler = await import("@vue/compiler-sfc");
3750
+ const compiler = await loadVueCompiler();
3738
3751
  const source = await Bun.file(sourcePath).text();
3739
3752
  const { descriptor } = compiler.parse(source, { filename: sourcePath });
3740
3753
  const componentId = Bun.hash(sourcePath).toString(BASE_36_RADIX).slice(0, ISLAND_COMPONENT_ID_LENGTH);
@@ -4729,5 +4742,5 @@ export {
4729
4742
  createTypedIsland
4730
4743
  };
4731
4744
 
4732
- //# debugId=5D94AABCDE111FBA64756E2164756E21
4745
+ //# debugId=162E361CACDE977764756E2164756E21
4733
4746
  //# sourceMappingURL=index.js.map