@utoo/pack-shared 1.4.18-alpha.2 → 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 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;
@@ -263,7 +271,7 @@ export interface ConfigComplete {
263
271
  swcPlugins?: [string, any][];
264
272
  pluginRuntimeStrategy?: "workerThreads" | "childProcesses";
265
273
  persistentCaching?: boolean;
266
- turbopackMemoryEviction?: false | "full";
274
+ turbopackMemoryEviction?: boolean | "full";
267
275
  nodePolyfill?: boolean;
268
276
  mdx?: MdxOptions;
269
277
  devServer?: DevServerConfig;
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;
@@ -263,7 +271,7 @@ export interface ConfigComplete {
263
271
  swcPlugins?: [string, any][];
264
272
  pluginRuntimeStrategy?: "workerThreads" | "childProcesses";
265
273
  persistentCaching?: boolean;
266
- turbopackMemoryEviction?: false | "full";
274
+ turbopackMemoryEviction?: boolean | "full";
267
275
  nodePolyfill?: boolean;
268
276
  mdx?: MdxOptions;
269
277
  devServer?: DevServerConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack-shared",
3
- "version": "1.4.18-alpha.2",
3
+ "version": "1.4.19",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "types": "esm/index.d.ts",