@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 +4 -1
- package/dist/index.js +4 -1
- package/package.json +1 -1
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
|
|
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
|
|
148
|
+
return {
|
|
149
|
+
code: generateRouteCode(routes),
|
|
150
|
+
lang: "tsx"
|
|
151
|
+
};
|
|
149
152
|
}
|
|
150
153
|
},
|
|
151
154
|
handleHotUpdate({ file, server }) {
|