@umijs/mfsu 4.0.0-canary.20220729.2 → 4.0.0-canary.20220819.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.
@@ -141,6 +141,7 @@ var DepBuilder = class {
141
141
  const depConfig = import_utils.lodash.cloneDeep(this.opts.mfsu.depConfig);
142
142
  depConfig.entry = (0, import_path.join)(this.opts.mfsu.opts.tmpBase, "index.js");
143
143
  depConfig.output.path = this.opts.mfsu.opts.tmpBase;
144
+ depConfig.output.publicPath = "auto";
144
145
  depConfig.devtool = false;
145
146
  if ((_a = depConfig.output) == null ? void 0 : _a.library)
146
147
  delete depConfig.output.library;
@@ -24,7 +24,7 @@ interface IOpts {
24
24
  shared?: any;
25
25
  remoteName?: string;
26
26
  remoteAliases?: string[];
27
- serverBase: string;
27
+ serverBase?: string;
28
28
  }
29
29
  export declare class MFSU {
30
30
  opts: IOpts;
@@ -1,9 +1,26 @@
1
1
  var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
8
  var __getProtoOf = Object.getPrototypeOf;
6
9
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
+ var __spreadValues = (a, b) => {
13
+ for (var prop in b || (b = {}))
14
+ if (__hasOwnProp.call(b, prop))
15
+ __defNormalProp(a, prop, b[prop]);
16
+ if (__getOwnPropSymbols)
17
+ for (var prop of __getOwnPropSymbols(b)) {
18
+ if (__propIsEnum.call(b, prop))
19
+ __defNormalProp(a, prop, b[prop]);
20
+ }
21
+ return a;
22
+ };
23
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
7
24
  var __export = (target, all) => {
8
25
  for (var name in all)
9
26
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -168,13 +185,12 @@ var StaticDepInfo = class {
168
185
  opts
169
186
  });
170
187
  if (match.isMatch) {
171
- matched[match.value] = {
172
- ...match,
188
+ matched[match.value] = __spreadProps(__spreadValues({}, match), {
173
189
  version: import_dep.Dep.getDepVersion({
174
190
  dep: match.value,
175
191
  cwd
176
192
  })
177
- };
193
+ });
178
194
  } else {
179
195
  unMatched.add(imp.n);
180
196
  }
@@ -214,13 +230,12 @@ var StaticDepInfo = class {
214
230
  opts
215
231
  });
216
232
  if (match.isMatch) {
217
- matched[match.value] = {
218
- ...match,
233
+ matched[match.value] = __spreadProps(__spreadValues({}, match), {
219
234
  version: import_dep.Dep.getDepVersion({
220
235
  dep: match.value,
221
236
  cwd: this.cwd
222
237
  })
223
- };
238
+ });
224
239
  }
225
240
  }
226
241
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/mfsu",
3
- "version": "4.0.0-canary.20220729.2",
3
+ "version": "4.0.0-canary.20220819.1",
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.0-canary.20220729.2",
27
- "@umijs/bundler-utils": "4.0.0-canary.20220729.2",
28
- "@umijs/utils": "4.0.0-canary.20220729.2",
26
+ "@umijs/bundler-esbuild": "4.0.0-canary.20220819.1",
27
+ "@umijs/bundler-utils": "4.0.0-canary.20220819.1",
28
+ "@umijs/utils": "4.0.0-canary.20220819.1",
29
29
  "enhanced-resolve": "5.9.3",
30
30
  "is-equal": "^1.6.4"
31
31
  },