File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change 1- import path from "node:path"
21import chalk from "chalk"
32import { type Plugin , normalizePath } from "vite"
43import type { RdtClientConfig } from "../client/context/RDTContext.js"
@@ -98,6 +97,7 @@ export const reactRouterDevTools: (args?: ReactRouterViteConfig) => Plugin[] = (
9897 } ,
9998 async configResolved ( resolvedViteConfig ) {
10099 try {
100+ const path = await import ( "node:path" )
101101 // Set the route config
102102 const routeConfigExport = ( await runner . executeFile ( path . join ( process . cwd ( ) , "./app/routes.ts" ) ) ) . default
103103 const routeConfig = await routeConfigExport
Original file line number Diff line number Diff line change @@ -7,4 +7,5 @@ export default defineConfig({
77 clean : false ,
88 dts : true ,
99 format : [ "esm" ] ,
10+ external : [ "vite-node" ] ,
1011} )
You can’t perform that action at this time.
0 commit comments