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.
Files changed (2) hide show
  1. package/dist/build.js +1 -1
  2. 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) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "minista",
3
3
  "description": "Next.js Like Development with 100% Static Generate",
4
- "version": "2.4.5",
4
+ "version": "2.4.6",
5
5
  "bin": {
6
6
  "minista": "./bin/minista.js"
7
7
  },