@esmx/router 3.0.0-rc.74 → 3.0.0-rc.76
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.
|
@@ -41,8 +41,9 @@ export const ROUTE_TRANSITION_HOOKS = {
|
|
|
41
41
|
const result = await asyncComponent();
|
|
42
42
|
matched.component = result;
|
|
43
43
|
} catch (e) {
|
|
44
|
+
const error = e instanceof Error ? e : new Error(String(e));
|
|
44
45
|
throw new Error(
|
|
45
|
-
"Async component '".concat(matched.compilePath, "' is not a valid component.")
|
|
46
|
+
"Async component '".concat(matched.compilePath, "' is not a valid component. Original error: ").concat(error.message)
|
|
46
47
|
);
|
|
47
48
|
}
|
|
48
49
|
}
|
package/package.json
CHANGED
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"unbuild": "3.6.1",
|
|
40
40
|
"vitest": "3.2.4"
|
|
41
41
|
},
|
|
42
|
-
"version": "3.0.0-rc.
|
|
42
|
+
"version": "3.0.0-rc.76",
|
|
43
43
|
"type": "module",
|
|
44
44
|
"private": false,
|
|
45
45
|
"exports": {
|
|
@@ -58,5 +58,5 @@
|
|
|
58
58
|
"template",
|
|
59
59
|
"public"
|
|
60
60
|
],
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "8377e5ae2c59cc2b334272d674deb7a01b7e8fa5"
|
|
62
62
|
}
|
package/src/route-transition.ts
CHANGED
|
@@ -66,9 +66,11 @@ export const ROUTE_TRANSITION_HOOKS = {
|
|
|
66
66
|
try {
|
|
67
67
|
const result = await asyncComponent();
|
|
68
68
|
matched.component = result;
|
|
69
|
-
} catch {
|
|
69
|
+
} catch (e) {
|
|
70
|
+
const error =
|
|
71
|
+
e instanceof Error ? e : new Error(String(e));
|
|
70
72
|
throw new Error(
|
|
71
|
-
`Async component '${matched.compilePath}' is not a valid component
|
|
73
|
+
`Async component '${matched.compilePath}' is not a valid component. Original error: ${error.message}`
|
|
72
74
|
);
|
|
73
75
|
}
|
|
74
76
|
}
|