@umijs/mfsu 4.0.0-rc.16 → 4.0.0-rc.19

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/dep/dep.js CHANGED
@@ -14,7 +14,7 @@ const trimFileContent_1 = require("../utils/trimFileContent");
14
14
  const getExposeFromContent_1 = require("./getExposeFromContent");
15
15
  const resolver = enhanced_resolve_1.default.create({
16
16
  mainFields: ['module', 'browser', 'main'],
17
- extensions: ['.js', '.json', '.mjs'],
17
+ extensions: ['.wasm', '.mjs', '.js', '.jsx', '.ts', '.tsx', '.json'],
18
18
  exportsFields: ['exports'],
19
19
  conditionNames: ['import', 'module', 'require', 'node'],
20
20
  });
package/dist/mfsu.js CHANGED
@@ -134,7 +134,7 @@ class MFSU {
134
134
  // https://webpack.js.org/concepts/module-federation/#promise-based-dynamic-remotes
135
135
  `
136
136
  promise new Promise(resolve => {
137
- const remoteUrlWithVersion = window.publicPath + '${constants_1.REMOTE_FILE_FULL}';
137
+ const remoteUrlWithVersion = (window.publicPath || '/') + '${constants_1.REMOTE_FILE_FULL}';
138
138
  const script = document.createElement('script');
139
139
  script.src = remoteUrlWithVersion;
140
140
  script.onload = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/mfsu",
3
- "version": "4.0.0-rc.16",
3
+ "version": "4.0.0-rc.19",
4
4
  "description": "@umijs/mfsu",
5
5
  "homepage": "https://github.com/umijs/umi-next/tree/master/packages/mfsu#readme",
6
6
  "bugs": "https://github.com/umijs/umi-next/issues",
@@ -22,9 +22,9 @@
22
22
  "test": "umi-scripts jest-turbo"
23
23
  },
24
24
  "dependencies": {
25
- "@umijs/bundler-esbuild": "4.0.0-rc.16",
26
- "@umijs/bundler-utils": "4.0.0-rc.16",
27
- "@umijs/utils": "4.0.0-rc.16",
25
+ "@umijs/bundler-esbuild": "4.0.0-rc.19",
26
+ "@umijs/bundler-utils": "4.0.0-rc.19",
27
+ "@umijs/utils": "4.0.0-rc.19",
28
28
  "enhanced-resolve": "5.9.3"
29
29
  },
30
30
  "devDependencies": {