@umijs/bundler-webpack 4.0.0-canary.20220920.1 → 4.0.0-canary.20220929.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/dist/dev.js CHANGED
@@ -84,7 +84,6 @@ async function dev(opts) {
84
84
  });
85
85
  }
86
86
  const webpackConfig = await (0, import_config.getConfig)({
87
- name: opts.mfsuStrategy === "eager" ? "eager" : void 0,
88
87
  cwd: opts.cwd,
89
88
  rootDir: opts.rootDir,
90
89
  env: import_types.Env.development,
@@ -108,7 +107,7 @@ async function dev(opts) {
108
107
  analyze: process.env.ANALYZE,
109
108
  cache: opts.cache ? {
110
109
  ...opts.cache,
111
- cacheDirectory: (0, import_path.join)(cacheDirectoryPath, "bundler-webpack")
110
+ cacheDirectory: (0, import_path.join)(cacheDirectoryPath, opts.mfsuStrategy === "eager" ? "bundler-webpack-eager" : "bundler-webpack")
112
111
  } : void 0,
113
112
  pkg: opts.pkg
114
113
  });
package/dist/types.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { Config as SwcConfig } from '@swc/core';
2
2
  import type { HttpsServerOptions, ProxyOptions } from '@umijs/bundler-utils';
3
- import { Configuration } from '../compiled/webpack';
3
+ import webpack, { Configuration } from '../compiled/webpack';
4
4
  import Config from '../compiled/webpack-5-chain';
5
5
  export declare enum Env {
6
6
  development = "development",
@@ -47,7 +47,12 @@ export interface IConfig {
47
47
  alias?: Record<string, string>;
48
48
  autoCSSModules?: boolean;
49
49
  base?: string;
50
- chainWebpack?: Function;
50
+ chainWebpack?: {
51
+ (memo: Config, args: {
52
+ env: keyof typeof Env;
53
+ webpack: typeof webpack;
54
+ }): void;
55
+ };
51
56
  copy?: ICopy[] | string[];
52
57
  cssLoader?: {
53
58
  [key: string]: any;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/bundler-webpack",
3
- "version": "4.0.0-canary.20220920.1",
3
+ "version": "4.0.0-canary.20220929.1",
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.0-canary.20220920.1",
38
- "@umijs/bundler-utils": "4.0.0-canary.20220920.1",
37
+ "@umijs/babel-preset-umi": "4.0.0-canary.20220929.1",
38
+ "@umijs/bundler-utils": "4.0.0-canary.20220929.1",
39
39
  "@umijs/case-sensitive-paths-webpack-plugin": "^1.0.1",
40
- "@umijs/mfsu": "4.0.0-canary.20220920.1",
41
- "@umijs/utils": "4.0.0-canary.20220920.1",
40
+ "@umijs/mfsu": "4.0.0-canary.20220929.1",
41
+ "@umijs/utils": "4.0.0-canary.20220929.1",
42
42
  "cors": "^2.8.5",
43
43
  "css-loader": "6.7.1",
44
44
  "es5-imcompatible-versions": "^0.1.73",