diff --git a/ui/vite.config.ts b/ui/vite.config.ts index 3bafb41b6a2..79ebdc69bf3 100644 --- a/ui/vite.config.ts +++ b/ui/vite.config.ts @@ -119,10 +119,7 @@ function resolveTsconfigPathAlias(key: string, target: string): ControlUiViteAli }; } - if ( - key.indexOf("*", keyWildcardIndex + 1) !== -1 || - target.indexOf("*", targetWildcardIndex + 1) !== -1 - ) { + if (key.includes("*", keyWildcardIndex + 1) || target.includes("*", targetWildcardIndex + 1)) { return null; }