Skip to content

Commit 783d160

Browse files
committed
small bug fix
1 parent d5684da commit 783d160

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/vite/plugin.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import path from "node:path"
21
import chalk from "chalk"
32
import { type Plugin, normalizePath } from "vite"
43
import 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

tsup.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@ export default defineConfig({
77
clean: false,
88
dts: true,
99
format: ["esm"],
10+
external: ["vite-node"],
1011
})

0 commit comments

Comments
 (0)