@samadhi1311/router 1.0.1 → 1.0.2

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
@@ -114,15 +114,15 @@ function router(options = {}) {
114
114
  `;
115
115
  }
116
116
  if (layoutId && route.layoutPath) {
117
- imports += `import ${layoutId} from '${resolveFile(route.componentPath)}';
117
+ imports += `import ${layoutId} from '${resolveFile(route.layoutPath)}';
118
118
  `;
119
119
  }
120
120
  if (loadingId && route.loadingPath) {
121
- imports += `import ${loadingId} from '${resolveFile(route.componentPath)}';
121
+ imports += `import ${loadingId} from '${resolveFile(route.loadingPath)}';
122
122
  `;
123
123
  }
124
124
  if (notFoundId && route.notFoundPath) {
125
- imports += `import ${notFoundId} from ''${resolveFile(route.componentPath)}';
125
+ imports += `import ${notFoundId} from '${resolveFile(route.notFoundPath)}';
126
126
  `;
127
127
  }
128
128
  let config = `${indent}{
package/dist/index.js CHANGED
@@ -80,15 +80,15 @@ function router(options = {}) {
80
80
  `;
81
81
  }
82
82
  if (layoutId && route.layoutPath) {
83
- imports += `import ${layoutId} from '${resolveFile(route.componentPath)}';
83
+ imports += `import ${layoutId} from '${resolveFile(route.layoutPath)}';
84
84
  `;
85
85
  }
86
86
  if (loadingId && route.loadingPath) {
87
- imports += `import ${loadingId} from '${resolveFile(route.componentPath)}';
87
+ imports += `import ${loadingId} from '${resolveFile(route.loadingPath)}';
88
88
  `;
89
89
  }
90
90
  if (notFoundId && route.notFoundPath) {
91
- imports += `import ${notFoundId} from ''${resolveFile(route.componentPath)}';
91
+ imports += `import ${notFoundId} from '${resolveFile(route.notFoundPath)}';
92
92
  `;
93
93
  }
94
94
  let config = `${indent}{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@samadhi1311/router",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A simple router for Vite inspired by Next.JS App Router",
5
5
  "author": {
6
6
  "name": "Samadhi Gunasinghe",