Skip to content

Commit

Permalink
Finalised the doc page migration to react-router
Browse files Browse the repository at this point in the history
  • Loading branch information
AlemTuzlak committed Nov 12, 2024
1 parent b0b8ca1 commit 7af0984
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vite/plugin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ export const reactRouterDevTools: (args?: ReactRouterViteConfig) => Plugin[] = (
return shouldInject(config.mode, includeServer)
},
transform(code, id) {
const extensions = [".tsx", ".jsx", ".ts", ".js"]
if (!extensions.some((ext) => id.endsWith(ext))) {
return
}
if (id.includes("node_modules") || id.includes("dist") || id.includes("build") || id.includes("?")) {
return
}
Expand Down

0 comments on commit 7af0984

Please sign in to comment.