minista 2.4.5 → 2.4.6
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/build.js +1 -1
- package/package.json +1 -1
package/dist/build.js
CHANGED
|
@@ -181,7 +181,7 @@ async function buildHtmlPage(pageJsxContent, staticDataItem, routePath, rootStat
|
|
|
181
181
|
const staticProps = staticDataItem.props;
|
|
182
182
|
const reg1 = new RegExp(`^${outDir}|index.html`, "g");
|
|
183
183
|
const reg2 = new RegExp(`.html`, "g");
|
|
184
|
-
const pathname = routePath.replace(reg1, "").replace(reg2, "");
|
|
184
|
+
const pathname = routePath.replace(reg1, "").replace(reg2, "").replaceAll("\\", "/");
|
|
185
185
|
const location = { pathname };
|
|
186
186
|
const RenderComponent = () => {
|
|
187
187
|
if (RootComponent === Fragment) {
|