@umijs/plugins 4.0.0-canary.20220525.1 → 4.0.0-canary.20220525.2
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/qiankun/master.js +3 -5
- package/package.json +3 -3
package/dist/qiankun/master.js
CHANGED
|
@@ -34,16 +34,14 @@ exports.default = (api) => {
|
|
|
34
34
|
},
|
|
35
35
|
},
|
|
36
36
|
}));
|
|
37
|
-
// TODO: modify routes
|
|
38
37
|
api.modifyRoutes((memo) => {
|
|
39
38
|
Object.keys(memo).forEach((id) => {
|
|
39
|
+
var _a;
|
|
40
40
|
const route = memo[id];
|
|
41
41
|
if (route.microApp) {
|
|
42
42
|
const appName = route.microApp;
|
|
43
|
-
|
|
44
|
-
const
|
|
45
|
-
// TODO: config masterHistoryType
|
|
46
|
-
const masterHistoryType = 'browser';
|
|
43
|
+
const base = api.config.base || '/';
|
|
44
|
+
const masterHistoryType = ((_a = api.config.history) === null || _a === void 0 ? void 0 : _a.type) || 'browser';
|
|
47
45
|
const routeProps = route.microAppProps || {};
|
|
48
46
|
const normalizedRouteProps = JSON.stringify(routeProps).replace(/"/g, "'");
|
|
49
47
|
route.file = `(async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@umijs/plugins",
|
|
3
|
-
"version": "4.0.0-canary.20220525.
|
|
3
|
+
"version": "4.0.0-canary.20220525.2",
|
|
4
4
|
"description": "@umijs/plugins",
|
|
5
5
|
"homepage": "https://github.com/umijs/umi-next/tree/master/packages/plugins#readme",
|
|
6
6
|
"bugs": "https://github.com/umijs/umi-next/issues",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"@ahooksjs/use-request": "^2.0.0",
|
|
26
26
|
"@ant-design/icons": "^4.7.0",
|
|
27
27
|
"@ant-design/pro-layout": "^6.38.0",
|
|
28
|
-
"@umijs/bundler-utils": "4.0.0-canary.20220525.
|
|
28
|
+
"@umijs/bundler-utils": "4.0.0-canary.20220525.2",
|
|
29
29
|
"antd-dayjs-webpack-plugin": "^1.0.6",
|
|
30
30
|
"axios": "^0.27.2",
|
|
31
31
|
"babel-plugin-import": "^1.13.3",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"warning": "^4.0.3"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"umi": "4.0.0-canary.20220525.
|
|
47
|
+
"umi": "4.0.0-canary.20220525.2"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|