Skip to content

Commit c5119e8

Browse files
committed
add vite ignore comment for dynamic import
1 parent ecb306e commit c5119e8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/react-router/lib/dom/ssr/routeModules.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,11 @@ export async function loadRouteModule(
200200
}
201201

202202
try {
203-
let routeModule = await import(/* webpackIgnore: true */ route.module);
203+
let routeModule = await import(
204+
/* @vite-ignore */
205+
/* webpackIgnore: true */
206+
route.module
207+
);
204208
routeModulesCache[route.id] = routeModule;
205209
return routeModule;
206210
} catch (error: unknown) {

0 commit comments

Comments
 (0)