@utoo/pack-shared 1.5.6-alpha.0 → 1.5.6-alpha.1

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
@@ -162,6 +162,8 @@ export interface DevServerConfig {
162
162
  hot?: boolean;
163
163
  /** Register HMR chunk lists as dynamic chunks are loaded. */
164
164
  dynamicHmrChunkLists?: boolean;
165
+ /** Compile development assets when they are requested instead of eagerly. */
166
+ lazyCompilation?: boolean;
165
167
  /** Port to listen on. */
166
168
  port?: number;
167
169
  /** Host to bind (e.g. localhost, 0.0.0.0). */
@@ -516,6 +516,9 @@ function compatDevServer(devServer) {
516
516
  if (typeof devServer.dynamicHmrChunkLists !== "undefined") {
517
517
  result.dynamicHmrChunkLists = !!devServer.dynamicHmrChunkLists;
518
518
  }
519
+ if (typeof devServer.lazyCompilation !== "undefined") {
520
+ result.lazyCompilation = !!devServer.lazyCompilation;
521
+ }
519
522
  if (typeof devServer.port !== "undefined") {
520
523
  const p = Number(devServer.port);
521
524
  if (!Number.isNaN(p))
package/esm/config.d.ts CHANGED
@@ -162,6 +162,8 @@ export interface DevServerConfig {
162
162
  hot?: boolean;
163
163
  /** Register HMR chunk lists as dynamic chunks are loaded. */
164
164
  dynamicHmrChunkLists?: boolean;
165
+ /** Compile development assets when they are requested instead of eagerly. */
166
+ lazyCompilation?: boolean;
165
167
  /** Port to listen on. */
166
168
  port?: number;
167
169
  /** Host to bind (e.g. localhost, 0.0.0.0). */
@@ -513,6 +513,9 @@ function compatDevServer(devServer) {
513
513
  if (typeof devServer.dynamicHmrChunkLists !== "undefined") {
514
514
  result.dynamicHmrChunkLists = !!devServer.dynamicHmrChunkLists;
515
515
  }
516
+ if (typeof devServer.lazyCompilation !== "undefined") {
517
+ result.lazyCompilation = !!devServer.lazyCompilation;
518
+ }
516
519
  if (typeof devServer.port !== "undefined") {
517
520
  const p = Number(devServer.port);
518
521
  if (!Number.isNaN(p))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack-shared",
3
- "version": "1.5.6-alpha.0",
3
+ "version": "1.5.6-alpha.1",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "types": "esm/index.d.ts",