@utoo/pack-shared 1.5.0-alpha.0 → 1.5.0-alpha.2

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/cjs/config.d.ts CHANGED
@@ -10,6 +10,17 @@ export interface EntryOptions {
10
10
  */
11
11
  html?: HtmlConfig;
12
12
  }
13
+ /** A named server entry compiled as an independently addressable Node.js bundle. */
14
+ export interface ServerEntryOptions {
15
+ name: string;
16
+ import: string;
17
+ }
18
+ /**
19
+ * Server entries. A string preserves the legacy single `index` entry behavior.
20
+ * In array form, the first entry is the primary server runtime and receives
21
+ * Server Functions; the remaining entries are emitted independently.
22
+ */
23
+ export type ServerEntry = string | ServerEntryOptions[];
13
24
  export interface LibraryOptions {
14
25
  name?: string;
15
26
  export?: Array<string>;
@@ -274,13 +285,18 @@ export interface ConfigComplete {
274
285
  swcPlugins?: [string, any][];
275
286
  pluginRuntimeStrategy?: "workerThreads" | "childProcesses";
276
287
  persistentCaching?: boolean;
277
- turbopackMemoryEviction?: boolean | "full";
288
+ /**
289
+ * Controls memory eviction for the persistent Turbopack cache.
290
+ * Defaults to "auto". Use false to disable eviction or "full" to evict
291
+ * after every snapshot.
292
+ */
293
+ turbopackMemoryEviction?: boolean | "auto" | "full";
278
294
  nodePolyfill?: boolean;
279
295
  mdx?: MdxOptions;
280
296
  devServer?: DevServerConfig;
281
297
  server?: {
282
298
  /** Entry point for the server runtime (e.g. "src/server.ts") */
283
- entry?: string;
299
+ entry?: ServerEntry;
284
300
  output?: {
285
301
  /** Output path for server chunks, relative to project root. */
286
302
  path?: string;
package/esm/config.d.ts CHANGED
@@ -10,6 +10,17 @@ export interface EntryOptions {
10
10
  */
11
11
  html?: HtmlConfig;
12
12
  }
13
+ /** A named server entry compiled as an independently addressable Node.js bundle. */
14
+ export interface ServerEntryOptions {
15
+ name: string;
16
+ import: string;
17
+ }
18
+ /**
19
+ * Server entries. A string preserves the legacy single `index` entry behavior.
20
+ * In array form, the first entry is the primary server runtime and receives
21
+ * Server Functions; the remaining entries are emitted independently.
22
+ */
23
+ export type ServerEntry = string | ServerEntryOptions[];
13
24
  export interface LibraryOptions {
14
25
  name?: string;
15
26
  export?: Array<string>;
@@ -274,13 +285,18 @@ export interface ConfigComplete {
274
285
  swcPlugins?: [string, any][];
275
286
  pluginRuntimeStrategy?: "workerThreads" | "childProcesses";
276
287
  persistentCaching?: boolean;
277
- turbopackMemoryEviction?: boolean | "full";
288
+ /**
289
+ * Controls memory eviction for the persistent Turbopack cache.
290
+ * Defaults to "auto". Use false to disable eviction or "full" to evict
291
+ * after every snapshot.
292
+ */
293
+ turbopackMemoryEviction?: boolean | "auto" | "full";
278
294
  nodePolyfill?: boolean;
279
295
  mdx?: MdxOptions;
280
296
  devServer?: DevServerConfig;
281
297
  server?: {
282
298
  /** Entry point for the server runtime (e.g. "src/server.ts") */
283
- entry?: string;
299
+ entry?: ServerEntry;
284
300
  output?: {
285
301
  /** Output path for server chunks, relative to project root. */
286
302
  path?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack-shared",
3
- "version": "1.5.0-alpha.0",
3
+ "version": "1.5.0-alpha.2",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "types": "esm/index.d.ts",