@umijs/bundler-webpack 4.0.34 → 4.0.36

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.
@@ -31,7 +31,8 @@ async function addBundleAnalyzerPlugin(opts) {
31
31
  analyzerPort: process.env.ANALYZE_PORT || 8888,
32
32
  openAnalyzer: false,
33
33
  logLevel: "info",
34
- defaultSizes: "parsed"
34
+ defaultSizes: "parsed",
35
+ ...opts.userConfig.analyze
35
36
  }
36
37
  ]);
37
38
  }
package/dist/types.d.ts CHANGED
@@ -117,6 +117,7 @@ export interface IConfig {
117
117
  };
118
118
  writeToDisk?: boolean;
119
119
  babelLoaderCustomize?: string;
120
+ analyze?: Record<string, any>;
120
121
  [key: string]: any;
121
122
  }
122
123
  export interface SwcOptions extends SwcConfig {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/bundler-webpack",
3
- "version": "4.0.34",
3
+ "version": "4.0.36",
4
4
  "description": "@umijs/bundler-webpack",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/bundler-webpack#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -34,11 +34,11 @@
34
34
  "@svgr/plugin-jsx": "^6.2.1",
35
35
  "@svgr/plugin-svgo": "^6.2.0",
36
36
  "@types/hapi__joi": "17.1.8",
37
- "@umijs/babel-preset-umi": "4.0.34",
38
- "@umijs/bundler-utils": "4.0.34",
37
+ "@umijs/babel-preset-umi": "4.0.36",
38
+ "@umijs/bundler-utils": "4.0.36",
39
39
  "@umijs/case-sensitive-paths-webpack-plugin": "^1.0.1",
40
- "@umijs/mfsu": "4.0.34",
41
- "@umijs/utils": "4.0.34",
40
+ "@umijs/mfsu": "4.0.36",
41
+ "@umijs/utils": "4.0.36",
42
42
  "cors": "^2.8.5",
43
43
  "css-loader": "6.7.1",
44
44
  "es5-imcompatible-versions": "^0.1.73",