@utoo/pack-shared 1.5.0-alpha.1 → 1.5.0
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 +12 -1
- package/esm/config.d.ts +12 -1
- package/package.json +1 -1
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>;
|
|
@@ -285,7 +296,7 @@ export interface ConfigComplete {
|
|
|
285
296
|
devServer?: DevServerConfig;
|
|
286
297
|
server?: {
|
|
287
298
|
/** Entry point for the server runtime (e.g. "src/server.ts") */
|
|
288
|
-
entry?:
|
|
299
|
+
entry?: ServerEntry;
|
|
289
300
|
output?: {
|
|
290
301
|
/** Output path for server chunks, relative to project root. */
|
|
291
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>;
|
|
@@ -285,7 +296,7 @@ export interface ConfigComplete {
|
|
|
285
296
|
devServer?: DevServerConfig;
|
|
286
297
|
server?: {
|
|
287
298
|
/** Entry point for the server runtime (e.g. "src/server.ts") */
|
|
288
|
-
entry?:
|
|
299
|
+
entry?: ServerEntry;
|
|
289
300
|
output?: {
|
|
290
301
|
/** Output path for server chunks, relative to project root. */
|
|
291
302
|
path?: string;
|