@umijs/bundler-utoopack 4.6.76 → 4.6.78

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/dist/config.js CHANGED
@@ -582,7 +582,8 @@ function getUserUtoopackConfig(utoopackConfig = {}, opts) {
582
582
  var _a, _b;
583
583
  const userUtoopackConfig = import_utils.lodash.omit(utoopackConfig, [
584
584
  "babelLoader",
585
- "root"
585
+ "root",
586
+ "watch"
586
587
  ]);
587
588
  const packageImports = ((_a = userUtoopackConfig.optimization) == null ? void 0 : _a.packageImports) || [];
588
589
  if (((_b = opts.config.antd) == null ? void 0 : _b.import) && opts.modularizeImports.antd && Array.isArray(packageImports) && packageImports.includes("antd")) {
@@ -740,7 +741,7 @@ async function getSSRUtooPackConfig(rawOpts) {
740
741
  return utooBundlerOpts;
741
742
  }
742
743
  async function getDevUtooPackConfig(rawOpts) {
743
- var _a;
744
+ var _a, _b;
744
745
  const opts = normalizeUtoopackOpts(rawOpts);
745
746
  let webpackConfig = await (0, import_bundler_webpack.getConfig)({
746
747
  cwd: opts.cwd,
@@ -853,6 +854,7 @@ async function getDevUtooPackConfig(rawOpts) {
853
854
  userUtoopackConfig
854
855
  ),
855
856
  watch: {
857
+ ...(_b = opts.config.utoopack) == null ? void 0 : _b.watch,
856
858
  enable: true
857
859
  },
858
860
  dev: true,
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@ import { IDevOpts } from './config';
2
2
  import type { IOpts } from './types';
3
3
  export { findRootDir } from '@utoo/pack';
4
4
  export * from './config';
5
- export type { IUtoopackUserConfig } from './types';
5
+ export type { IUtoopackUserConfig, IUtoopackWatchConfig } from './types';
6
6
  export declare function isUtoopackProxyStartupError(error: any, utooServePort: number): boolean;
7
7
  export declare function createDevStatsFromClientPaths(clientPaths: string[] | undefined, entryNames: string[]): any;
8
8
  export declare function build(opts: IOpts): Promise<any>;
package/dist/types.d.ts CHANGED
@@ -1,8 +1,14 @@
1
1
  import type { IOpts as IConfigOpts } from '@umijs/bundler-webpack';
2
2
  import type { ConfigComplete } from '@utoo/pack';
3
+ export type IUtoopackWatchConfig = {
4
+ pollIntervalMs?: number;
5
+ ignored?: string[];
6
+ nodeModulesRegexes?: string[];
7
+ };
3
8
  export type IUtoopackUserConfig = ConfigComplete & {
4
9
  babelLoader?: boolean;
5
10
  root?: string;
11
+ watch?: IUtoopackWatchConfig;
6
12
  };
7
13
  export type IOpts = {
8
14
  cwd: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/bundler-utoopack",
3
- "version": "4.6.76",
3
+ "version": "4.6.78",
4
4
  "description": "@umijs/bundler-utoopack",
5
5
  "repository": {
6
6
  "type": "git",
@@ -14,7 +14,7 @@
14
14
  "dist"
15
15
  ],
16
16
  "dependencies": {
17
- "@utoo/pack": "1.4.25",
17
+ "@utoo/pack": "1.4.26",
18
18
  "compression": "^1.7.4",
19
19
  "connect-history-api-fallback": "^2.0.0",
20
20
  "cors": "^2.8.5",
@@ -26,8 +26,8 @@
26
26
  "resolve-url-loader": "5.0.0",
27
27
  "sass": "1.54.0",
28
28
  "sass-loader": "13.2.0",
29
- "@umijs/bundler-utils": "4.6.76",
30
- "@umijs/bundler-webpack": "4.6.76"
29
+ "@umijs/bundler-utils": "4.6.78",
30
+ "@umijs/bundler-webpack": "4.6.78"
31
31
  },
32
32
  "publishConfig": {
33
33
  "access": "public"