Skip to content

Commit

Permalink
fix(core): fix for qiankun.extraBase
Browse files Browse the repository at this point in the history
  • Loading branch information
Diablohu committed Jul 28, 2022
1 parent 65c073a commit f805c49
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## [Unreleased]

## [0.15.10] - 2022-07-28
## [0.15.11] - 2022-07-28

**koot-webpack**

Expand Down
12 changes: 5 additions & 7 deletions packages/koot/React/validate/router-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,10 @@ const validateRouterConfig = (kootConfigRouter) =>
process.env.KOOT_HISTORY_BASENAME &&
(routes.path === '/' || !routes.path)
) {
const newBase =
'/' +
process.env.KOOT_HISTORY_BASENAME.replace(/^\//, '').replace(
/\/$/,
''
);
const newBase = process.env.KOOT_HISTORY_BASENAME.replace(
/^\//,
''
).replace(/\/$/, '');
if (!!process.env.KOOT_HISTORY_EXTRABASE) {
const root = {
...routes,
Expand All @@ -63,7 +61,7 @@ const validateRouterConfig = (kootConfigRouter) =>
],
};
} else {
routes.path = newBase;
routes.path = '/' + newBase;
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/projects/simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
"private": true,
"sideEffects": false,
"koot": {
"version": "0.15.9"
"version": "0.15.10"
},
"devDependencies": {
"@types/inquirer": "^8.2.1",
Expand Down
2 changes: 1 addition & 1 deletion test/projects/simple2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"private": true,
"sideEffects": false,
"koot": {
"version": "0.15.9"
"version": "0.15.10"
},
"devDependencies": {
"@types/inquirer": "^8.2.1",
Expand Down
2 changes: 1 addition & 1 deletion test/projects/standard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"private": true,
"sideEffects": false,
"koot": {
"version": "0.15.9"
"version": "0.15.10"
},
"devDependencies": {
"@types/inquirer": "^8.2.1",
Expand Down

0 comments on commit f805c49

Please sign in to comment.