Skip to content

Commit af7cdf6

Browse files
authored
refactor: replace find with some (#23554)
1 parent 1544bb1 commit af7cdf6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/vite/src/node/plugins/preAlias.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export function preAliasPlugin(config: ResolvedConfig): Plugin {
4343
id !== '@vite/client' &&
4444
id !== '@vite/env'
4545
) {
46-
if (findPatterns.find((pattern) => matches(pattern, id))) {
46+
if (findPatterns.some((pattern) => matches(pattern, id))) {
4747
const optimizedId = await tryOptimizedResolve(
4848
depsOptimizer,
4949
id,

0 commit comments

Comments
 (0)