@utoo/pack-shared 1.4.18 → 1.4.19
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 +8 -0
- package/esm/config.d.ts +8 -0
- package/package.json +1 -1
package/cjs/config.d.ts
CHANGED
|
@@ -158,6 +158,13 @@ export interface DevServerConfig {
|
|
|
158
158
|
/** HTTP proxy rules for Hono dev server (HTTP only; no generic WS proxy in this layer). */
|
|
159
159
|
proxy?: DevServerProxy;
|
|
160
160
|
}
|
|
161
|
+
export type CssChunkingConfig = boolean | "strict" | "loose" | "graph" | {
|
|
162
|
+
type: "strict" | "loose";
|
|
163
|
+
} | {
|
|
164
|
+
type: "graph";
|
|
165
|
+
requestCost?: number;
|
|
166
|
+
weightDistribution?: number;
|
|
167
|
+
};
|
|
161
168
|
export interface ConfigComplete {
|
|
162
169
|
entry: EntryOptions[];
|
|
163
170
|
mode?: "production" | "development";
|
|
@@ -203,6 +210,7 @@ export interface ConfigComplete {
|
|
|
203
210
|
maxChunkCountPerGroup?: number;
|
|
204
211
|
maxMergeChunkSize?: number;
|
|
205
212
|
}>;
|
|
213
|
+
cssChunking?: CssChunkingConfig;
|
|
206
214
|
modularizeImports?: Record<string, {
|
|
207
215
|
transform: string | Record<string, string>;
|
|
208
216
|
preventFullImport?: boolean;
|
package/esm/config.d.ts
CHANGED
|
@@ -158,6 +158,13 @@ export interface DevServerConfig {
|
|
|
158
158
|
/** HTTP proxy rules for Hono dev server (HTTP only; no generic WS proxy in this layer). */
|
|
159
159
|
proxy?: DevServerProxy;
|
|
160
160
|
}
|
|
161
|
+
export type CssChunkingConfig = boolean | "strict" | "loose" | "graph" | {
|
|
162
|
+
type: "strict" | "loose";
|
|
163
|
+
} | {
|
|
164
|
+
type: "graph";
|
|
165
|
+
requestCost?: number;
|
|
166
|
+
weightDistribution?: number;
|
|
167
|
+
};
|
|
161
168
|
export interface ConfigComplete {
|
|
162
169
|
entry: EntryOptions[];
|
|
163
170
|
mode?: "production" | "development";
|
|
@@ -203,6 +210,7 @@ export interface ConfigComplete {
|
|
|
203
210
|
maxChunkCountPerGroup?: number;
|
|
204
211
|
maxMergeChunkSize?: number;
|
|
205
212
|
}>;
|
|
213
|
+
cssChunking?: CssChunkingConfig;
|
|
206
214
|
modularizeImports?: Record<string, {
|
|
207
215
|
transform: string | Record<string, string>;
|
|
208
216
|
preventFullImport?: boolean;
|