@dreamkit/dev 0.0.8 → 0.0.9

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.
@@ -156,11 +156,9 @@ export function createDreamkitDevServer(vinxiApp, inOptions = {}) {
156
156
  if (!isVinxiRouterPage)
157
157
  return;
158
158
  const id = vinxiRoute.path;
159
- if (action === "remove") {
160
- if (router.name === "ssr" && server.app.objects.has(id))
161
- await server.app.remove([id]);
162
- }
163
- else if (action === "add" || action === "update") {
159
+ if (router.name === "ssr" && server.app.objects.has(id))
160
+ await server.app.remove([id]);
161
+ if (action === "add" || action === "update") {
164
162
  const routeObject = await server.fetchDefault(vinxiRoute.filePath);
165
163
  if (isRoute(routeObject))
166
164
  vinxiRoute.$$route = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamkit/dev",
3
- "version": "0.0.8",
3
+ "version": "0.0.9",
4
4
  "description": "Development tools for DreamKit.",
5
5
  "homepage": "https://dreamkit.dev",
6
6
  "repository": {