Skip to content

Commit ddc4a4a

Browse files
penalosapieh
andauthored
fix: exclude React Router from Vite detection (#6806)
Co-authored-by: Michal Piechowiak <[email protected]>
1 parent c6a714b commit ddc4a4a

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/build-info/src/frameworks/react-router.test.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ test('detects a site using React Router v7 as a framework', async ({ fs }) => {
3636
})
3737
const detected = await new Project(fs, cwd).detectFrameworks()
3838

39+
expect(detected?.length).toBe(1)
40+
3941
const detectedFrameworks = (detected ?? []).map((framework) => framework.id)
4042
expect(detectedFrameworks).not.toContain('remix')
4143

packages/build-info/src/frameworks/vite.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export class Vite extends BaseFramework implements Framework {
1919
'@tanstack/start',
2020
'@sveltejs/kit',
2121
'@analogjs/platform',
22+
'@react-router/dev',
2223
]
2324
category = Category.BuildTool
2425

0 commit comments

Comments
 (0)