@shaper.org/vite-react-plugin 1.0.20 → 1.0.21
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/package.json
CHANGED
|
@@ -153,7 +153,7 @@ export class ReactRouteMonitor {
|
|
|
153
153
|
const routes = validRoutes.map((route) => ({
|
|
154
154
|
name: route.id,
|
|
155
155
|
path: route.id === "index" ? route.path : `/${route.path}`,
|
|
156
|
-
file: `src/${route.id}.tsx`,
|
|
156
|
+
file: `src/pages/${route.id}.tsx`,
|
|
157
157
|
}));
|
|
158
158
|
|
|
159
159
|
this.iframeClient.sendAllRoutes(routes);
|
|
@@ -191,7 +191,7 @@ export class ReactRouteMonitor {
|
|
|
191
191
|
const routeInfo = {
|
|
192
192
|
name: to.id,
|
|
193
193
|
path: to.id === "index" ? to.path : `/${to.path}`,
|
|
194
|
-
file: `src/${to.id}.tsx`,
|
|
194
|
+
file: `src/pages/${to.id}.tsx`,
|
|
195
195
|
};
|
|
196
196
|
this.iframeClient.sendRouteChange(routeInfo);
|
|
197
197
|
};
|