@absolutejs/absolute 0.19.0-beta.1054 → 0.19.0-beta.1056

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.
@@ -47,6 +47,7 @@ export declare const loadConfig: (configPath?: string) => Promise<{
47
47
  };
48
48
  };
49
49
  static?: import("..").StaticConfig;
50
+ compile?: import("..").CompileConfig;
50
51
  images?: import("..").ImageConfig;
51
52
  sitemap?: import("..").SitemapConfig;
52
53
  openapi?: boolean | import("..").OpenApiConfig;
@@ -91,6 +91,27 @@ export type StaticConfig = {
91
91
  /** Revalidation interval in seconds. When set, stale pages are re-rendered in the background (ISR). */
92
92
  revalidate?: number;
93
93
  };
94
+ export type CompileNativeAssetConfig = {
95
+ /**
96
+ * Static import specifier for a native asset that Bun must embed only when
97
+ * producing a standalone executable, e.g.
98
+ * "@scope/native-linux-x64/native.node".
99
+ */
100
+ import: string;
101
+ /**
102
+ * Environment variable set to the embedded asset's runtime path before the
103
+ * compiled server bundle is imported.
104
+ */
105
+ env: string;
106
+ };
107
+ export type CompileConfig = {
108
+ /**
109
+ * Native assets to embed with Bun's `with { type: "file" }` compile import.
110
+ * These are injected into Absolute's generated compile entrypoint, so dev
111
+ * and start never evaluate `.node` files as ESM imports.
112
+ */
113
+ nativeAssets?: CompileNativeAssetConfig[];
114
+ };
94
115
  export type HttpReadyConfig = {
95
116
  type?: 'http';
96
117
  path?: string;
@@ -202,6 +223,7 @@ export type BaseBuildConfig = {
202
223
  };
203
224
  };
204
225
  static?: StaticConfig;
226
+ compile?: CompileConfig;
205
227
  images?: ImageConfig;
206
228
  sitemap?: SitemapConfig;
207
229
  openapi?: boolean | OpenApiConfig;
package/package.json CHANGED
@@ -414,7 +414,7 @@
414
414
  ]
415
415
  }
416
416
  },
417
- "version": "0.19.0-beta.1054",
417
+ "version": "0.19.0-beta.1056",
418
418
  "workspaces": [
419
419
  "tests/fixtures/*",
420
420
  "tests/fixtures/_packages/*"