@utoo/pack-shared 1.5.2 → 1.5.3

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
@@ -160,6 +160,8 @@ export type ProviderConfig = Record<string, string | [string, string]>;
160
160
  export interface DevServerConfig {
161
161
  /** Enable Hot Module Replacement. */
162
162
  hot?: boolean;
163
+ /** Register HMR chunk lists as dynamic chunks are loaded. */
164
+ dynamicHmrChunkLists?: boolean;
163
165
  /** Port to listen on. */
164
166
  port?: number;
165
167
  /** Host to bind (e.g. localhost, 0.0.0.0). */
@@ -181,6 +183,10 @@ export interface ConfigComplete {
181
183
  mode?: "production" | "development";
182
184
  module?: ModuleOptions;
183
185
  resolve?: ResolveOptions;
186
+ /**
187
+ * External dependencies for client and Node-target builds. Server entries and
188
+ * Server Functions also use this map unless `server.externals` is provided.
189
+ */
184
190
  externals?: Record<string, ExternalConfig>;
185
191
  output?: {
186
192
  path?: string;
@@ -297,6 +303,12 @@ export interface ConfigComplete {
297
303
  server?: {
298
304
  /** Entry point for the server runtime (e.g. "src/server.ts") */
299
305
  entry?: ServerEntry;
306
+ /**
307
+ * Server-specific externals. When omitted, top-level `externals` are used for
308
+ * backwards compatibility. When provided, this replaces the top-level map for
309
+ * server entries and Server Functions; use `{}` to disable configured externals.
310
+ */
311
+ externals?: Record<string, ExternalConfig>;
300
312
  output?: {
301
313
  /** Output path for server chunks, relative to project root. */
302
314
  path?: string;
@@ -513,6 +513,9 @@ function compatDevServer(devServer) {
513
513
  const result = {};
514
514
  if (typeof devServer.hot !== "undefined")
515
515
  result.hot = !!devServer.hot;
516
+ if (typeof devServer.dynamicHmrChunkLists !== "undefined") {
517
+ result.dynamicHmrChunkLists = !!devServer.dynamicHmrChunkLists;
518
+ }
516
519
  if (typeof devServer.port !== "undefined") {
517
520
  const p = Number(devServer.port);
518
521
  if (!Number.isNaN(p))
package/esm/config.d.ts CHANGED
@@ -160,6 +160,8 @@ export type ProviderConfig = Record<string, string | [string, string]>;
160
160
  export interface DevServerConfig {
161
161
  /** Enable Hot Module Replacement. */
162
162
  hot?: boolean;
163
+ /** Register HMR chunk lists as dynamic chunks are loaded. */
164
+ dynamicHmrChunkLists?: boolean;
163
165
  /** Port to listen on. */
164
166
  port?: number;
165
167
  /** Host to bind (e.g. localhost, 0.0.0.0). */
@@ -181,6 +183,10 @@ export interface ConfigComplete {
181
183
  mode?: "production" | "development";
182
184
  module?: ModuleOptions;
183
185
  resolve?: ResolveOptions;
186
+ /**
187
+ * External dependencies for client and Node-target builds. Server entries and
188
+ * Server Functions also use this map unless `server.externals` is provided.
189
+ */
184
190
  externals?: Record<string, ExternalConfig>;
185
191
  output?: {
186
192
  path?: string;
@@ -297,6 +303,12 @@ export interface ConfigComplete {
297
303
  server?: {
298
304
  /** Entry point for the server runtime (e.g. "src/server.ts") */
299
305
  entry?: ServerEntry;
306
+ /**
307
+ * Server-specific externals. When omitted, top-level `externals` are used for
308
+ * backwards compatibility. When provided, this replaces the top-level map for
309
+ * server entries and Server Functions; use `{}` to disable configured externals.
310
+ */
311
+ externals?: Record<string, ExternalConfig>;
300
312
  output?: {
301
313
  /** Output path for server chunks, relative to project root. */
302
314
  path?: string;
@@ -510,6 +510,9 @@ function compatDevServer(devServer) {
510
510
  const result = {};
511
511
  if (typeof devServer.hot !== "undefined")
512
512
  result.hot = !!devServer.hot;
513
+ if (typeof devServer.dynamicHmrChunkLists !== "undefined") {
514
+ result.dynamicHmrChunkLists = !!devServer.dynamicHmrChunkLists;
515
+ }
513
516
  if (typeof devServer.port !== "undefined") {
514
517
  const p = Number(devServer.port);
515
518
  if (!Number.isNaN(p))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack-shared",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "types": "esm/index.d.ts",