@umijs/bundler-webpack 4.0.29 → 4.0.31

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.
@@ -24,5 +24,6 @@ export interface IOpts {
24
24
  cacheDirectory?: string;
25
25
  };
26
26
  pkg?: Record<string, any>;
27
+ disableCopy?: boolean;
27
28
  }
28
29
  export declare function getConfig(opts: IOpts): Promise<Configuration>;
@@ -119,7 +119,9 @@ async function getConfig(opts) {
119
119
  await (0, import_progressPlugin.addProgressPlugin)(applyOpts);
120
120
  await (0, import_detectDeadCodePlugin.addDetectDeadCodePlugin)(applyOpts);
121
121
  await (0, import_forkTSCheckerPlugin.addForkTSCheckerPlugin)(applyOpts);
122
- await (0, import_copyPlugin.addCopyPlugin)(applyOpts);
122
+ if (!opts.disableCopy) {
123
+ await (0, import_copyPlugin.addCopyPlugin)(applyOpts);
124
+ }
123
125
  await (0, import_manifestPlugin.addManifestPlugin)(applyOpts);
124
126
  if (isDev && opts.hmr) {
125
127
  config.plugin("hmr").use(import_webpack.default.HotModuleReplacementPlugin);
package/dist/dev.js CHANGED
@@ -117,6 +117,7 @@ async function dev(opts) {
117
117
  env: import_types.Env.development,
118
118
  entry: opts.entry,
119
119
  userConfig: opts.config,
120
+ disableCopy: true,
120
121
  hash: true,
121
122
  staticPathPrefix: import_mfsu.MF_DEP_PREFIX,
122
123
  name: import_constants.MFSU_NAME,
@@ -1,4 +1,6 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
3
+ /// <reference types="node" />
2
4
  import type { SpdyServer as Server } from '@umijs/bundler-utils';
3
5
  import { Server as HttpServer } from 'http';
4
6
  import { Http2Server } from 'http2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/bundler-webpack",
3
- "version": "4.0.29",
3
+ "version": "4.0.31",
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.29",
38
- "@umijs/bundler-utils": "4.0.29",
37
+ "@umijs/babel-preset-umi": "4.0.31",
38
+ "@umijs/bundler-utils": "4.0.31",
39
39
  "@umijs/case-sensitive-paths-webpack-plugin": "^1.0.1",
40
- "@umijs/mfsu": "4.0.29",
41
- "@umijs/utils": "4.0.29",
40
+ "@umijs/mfsu": "4.0.31",
41
+ "@umijs/utils": "4.0.31",
42
42
  "cors": "^2.8.5",
43
43
  "css-loader": "6.7.1",
44
44
  "es5-imcompatible-versions": "^0.1.73",