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 b7bf92a commit 6dc082eCopy full SHA for 6dc082e
packages/knip/src/plugins/react-router/index.ts
@@ -17,7 +17,8 @@ const enablers = ['@react-router/dev'];
17
18
const isEnabled: IsPluginEnabled = ({ dependencies }) => hasDependency(dependencies, enablers);
19
20
-const config = ['react-router.config.{js,ts}', ...(vite.config ?? [])];
+const viteConfig = typeof vite.config === 'function' ? [] : (vite.config ?? []);
21
+const config = ['react-router.config.{js,ts}', ...viteConfig];
22
23
const resolveConfig: ResolveConfig<PluginConfig> = async (localConfig, options) => {
24
const { configFileDir } = options;
0 commit comments