fix: suppress Vite dynamic import warning in dynamicRoutes
Add @vite-ignore comment to dynamic import statement to suppress Vite's warning about unanalyzable dynamic imports. This is intentional as the component path is determined at runtime for tool routes.
This commit is contained in:
parent
85058f51e7
commit
5bf84cfefd
@ -62,7 +62,7 @@ export function registerToolRoute(
|
||||
path: routePath,
|
||||
name: toolWithRoutes.routeName,
|
||||
component: () => {
|
||||
return import(finalComponentPath).catch((error) => {
|
||||
return import(/* @vite-ignore */ finalComponentPath).catch((error) => {
|
||||
console.error(`Failed to load tool component: ${finalComponentPath}`, error)
|
||||
return {
|
||||
name: 'ToolComponentError',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user