We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5684da commit 783d160Copy full SHA for 783d160
2 files changed
src/vite/plugin.tsx
@@ -1,4 +1,3 @@
1
-import path from "node:path"
2
import chalk from "chalk"
3
import { type Plugin, normalizePath } from "vite"
4
import type { RdtClientConfig } from "../client/context/RDTContext.js"
@@ -98,6 +97,7 @@ export const reactRouterDevTools: (args?: ReactRouterViteConfig) => Plugin[] = (
98
97
},
99
async configResolved(resolvedViteConfig) {
100
try {
+ const path = await import("node:path")
101
// Set the route config
102
const routeConfigExport = (await runner.executeFile(path.join(process.cwd(), "./app/routes.ts"))).default
103
const routeConfig = await routeConfigExport
tsup.config.ts
@@ -7,4 +7,5 @@ export default defineConfig({
7
clean: false,
8
dts: true,
9
format: ["esm"],
10
+ external: ["vite-node"],
11
})
0 commit comments