Commit 1a41e55 1 parent de2d48d commit 1a41e55 Copy full SHA for 1a41e55
File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,12 @@ const RemixPackages = [
15
15
'@remix-run/serve' ,
16
16
'@remix-run/dev' ,
17
17
]
18
+ const ReactRouterPackages = [
19
+ '@react-router/node' ,
20
+ '@react-router/react' ,
21
+ '@react-router/serve' ,
22
+ '@react-router/dev' ,
23
+ ]
18
24
const NextJsPackages = [
19
25
'next' ,
20
26
]
@@ -57,6 +63,7 @@ export async function react(
57
63
58
64
const isAllowConstantExport = ReactRefreshAllowConstantExportPackages . some ( i => isPackageExists ( i ) )
59
65
const isUsingRemix = RemixPackages . some ( i => isPackageExists ( i ) )
66
+ const isUsingReactRouter = ReactRouterPackages . some ( i => isPackageExists ( i ) )
60
67
const isUsingNext = NextJsPackages . some ( i => isPackageExists ( i ) )
61
68
62
69
const plugins = pluginReact . configs . all . plugins
@@ -125,7 +132,7 @@ export async function react(
125
132
'generateViewport' ,
126
133
]
127
134
: [ ] ) ,
128
- ...( isUsingRemix
135
+ ...( isUsingRemix || isUsingReactRouter
129
136
? [
130
137
'meta' ,
131
138
'links' ,
You can’t perform that action at this time.
0 commit comments