@samadhi1311/router 1.0.3 → 1.0.4

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/index.cjs CHANGED
@@ -179,7 +179,10 @@ ${routeConfigs}];
179
179
  load(id) {
180
180
  if (id === resolvedVirtualModuleId) {
181
181
  const routes = scanDirectory("");
182
- return generateRouteCode(routes);
182
+ return {
183
+ code: generateRouteCode(routes),
184
+ lang: "tsx"
185
+ };
183
186
  }
184
187
  },
185
188
  handleHotUpdate({ file, server }) {
package/dist/index.js CHANGED
@@ -145,7 +145,10 @@ ${routeConfigs}];
145
145
  load(id) {
146
146
  if (id === resolvedVirtualModuleId) {
147
147
  const routes = scanDirectory("");
148
- return generateRouteCode(routes);
148
+ return {
149
+ code: generateRouteCode(routes),
150
+ lang: "tsx"
151
+ };
149
152
  }
150
153
  },
151
154
  handleHotUpdate({ file, server }) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samadhi1311/router",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "A simple router for Vite inspired by Next.JS App Router",
5
5
  "author": {
6
6
  "name": "Samadhi Gunasinghe",