@umijs/mfsu 4.0.0-canary.20220729.1 → 4.0.0-canary.20220810.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.
@@ -133,16 +133,15 @@ var DepBuilder = class {
133
133
  const content = await dep.buildExposeContent();
134
134
  (0, import_fs.writeFileSync)((0, import_path.join)(tmpBase, dep.filePath), content, "utf-8");
135
135
  }
136
- (0, import_fs.writeFileSync)((0, import_path.join)(tmpBase, "index.js"), `__webpack_public_path__ = document.currentScript.src + '/../';`, "utf-8");
136
+ (0, import_fs.writeFileSync)((0, import_path.join)(tmpBase, "index.js"), '"\u{1F61B}"', "utf-8");
137
137
  }
138
138
  getWebpackConfig(opts) {
139
139
  var _a, _b;
140
140
  const mfName = this.opts.mfsu.opts.mfName;
141
141
  const depConfig = import_utils.lodash.cloneDeep(this.opts.mfsu.depConfig);
142
- depConfig.entry = {
143
- [mfName]: (0, import_path.join)(this.opts.mfsu.opts.tmpBase, "index.js")
144
- };
142
+ depConfig.entry = (0, import_path.join)(this.opts.mfsu.opts.tmpBase, "index.js");
145
143
  depConfig.output.path = this.opts.mfsu.opts.tmpBase;
144
+ depConfig.output.publicPath = "auto";
146
145
  depConfig.devtool = false;
147
146
  if ((_a = depConfig.output) == null ? void 0 : _a.library)
148
147
  delete depConfig.output.library;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/mfsu",
3
- "version": "4.0.0-canary.20220729.1",
3
+ "version": "4.0.0-canary.20220810.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.1",
27
- "@umijs/bundler-utils": "4.0.0-canary.20220729.1",
28
- "@umijs/utils": "4.0.0-canary.20220729.1",
26
+ "@umijs/bundler-esbuild": "4.0.0-canary.20220810.1",
27
+ "@umijs/bundler-utils": "4.0.0-canary.20220810.1",
28
+ "@umijs/utils": "4.0.0-canary.20220810.1",
29
29
  "enhanced-resolve": "5.9.3",
30
30
  "is-equal": "^1.6.4"
31
31
  },