@utoo/pack-shared 1.5.2-alpha.0 → 1.5.3-alpha.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 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). */
@@ -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). */
@@ -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-alpha.0",
3
+ "version": "1.5.3-alpha.0",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "types": "esm/index.d.ts",