@umijs/mfsu 4.0.17 → 4.0.18

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.
@@ -26,7 +26,6 @@ interface IOpts {
26
26
  shared?: any;
27
27
  remoteName?: string;
28
28
  remoteAliases?: string[];
29
- serverBase?: string;
30
29
  startBuildWorker: (dep: any[]) => Worker;
31
30
  }
32
31
  export declare class MFSU {
package/dist/mfsu/mfsu.js CHANGED
@@ -2,22 +2,8 @@ var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
5
  var __getProtoOf = Object.getPrototypeOf;
7
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
8
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
9
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
10
- var __spreadValues = (a, b) => {
11
- for (var prop in b || (b = {}))
12
- if (__hasOwnProp.call(b, prop))
13
- __defNormalProp(a, prop, b[prop]);
14
- if (__getOwnPropSymbols)
15
- for (var prop of __getOwnPropSymbols(b)) {
16
- if (__propIsEnum.call(b, prop))
17
- __defNormalProp(a, prop, b[prop]);
18
- }
19
- return a;
20
- };
21
7
  var __export = (target, all) => {
22
8
  for (var name in all)
23
9
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -71,7 +57,10 @@ var MFSU = class {
71
57
  this.opts.getCacheDependency = this.opts.getCacheDependency || (() => ({}));
72
58
  this.onProgress = (progress) => {
73
59
  var _a, _b;
74
- this.progress = __spreadValues(__spreadValues({}, this.progress), progress);
60
+ this.progress = {
61
+ ...this.progress,
62
+ ...progress
63
+ };
75
64
  (_b = (_a = this.opts).onMFSUProgress) == null ? void 0 : _b.call(_a, this.progress);
76
65
  };
77
66
  this.opts.cwd = this.opts.cwd || process.cwd();
@@ -184,7 +173,7 @@ promise new Promise(resolve => {
184
173
  // inject this script with the src set to the versioned remoteEntry.js
185
174
  document.head.appendChild(script);
186
175
  })
187
- `.trimLeft() : `${mfName}@${this.opts.serverBase || ""}${publicPath}${import_constants.REMOTE_FILE_FULL}`
176
+ `.trimLeft() : `${mfName}@${publicPath}${import_constants.REMOTE_FILE_FULL}`
188
177
  }
189
178
  }),
190
179
  new import_buildDepPlugin.BuildDepPlugin(this.strategy.getBuildDepPlugConfig())
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/mfsu",
3
- "version": "4.0.17",
3
+ "version": "4.0.18",
4
4
  "description": "@umijs/mfsu",
5
5
  "homepage": "https://github.com/umijs/umi/tree/master/packages/mfsu#readme",
6
6
  "bugs": "https://github.com/umijs/umi/issues",
@@ -23,9 +23,9 @@
23
23
  "test": "umi-scripts jest-turbo"
24
24
  },
25
25
  "dependencies": {
26
- "@umijs/bundler-esbuild": "4.0.17",
27
- "@umijs/bundler-utils": "4.0.17",
28
- "@umijs/utils": "4.0.17",
26
+ "@umijs/bundler-esbuild": "4.0.18",
27
+ "@umijs/bundler-utils": "4.0.18",
28
+ "@umijs/utils": "4.0.18",
29
29
  "enhanced-resolve": "5.9.3",
30
30
  "is-equal": "^1.6.4"
31
31
  },