@utoo/pack-shared 1.5.6-alpha.2 → 1.5.6-alpha.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 +2 -0
- package/cjs/webpackCompat.js +3 -0
- package/esm/config.d.ts +2 -0
- package/esm/webpackCompat.js +3 -0
- package/package.json +1 -1
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). */
|
package/cjs/webpackCompat.js
CHANGED
|
@@ -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). */
|
package/esm/webpackCompat.js
CHANGED
|
@@ -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))
|