Skip to content

Commit

Permalink
extensionless search first
Browse files Browse the repository at this point in the history
  • Loading branch information
patricklx authored Sep 5, 2024
1 parent 98026ed commit c809d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/esbuild-resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function esBuildResolver(extensions: string[]): EsBuildPlugin {
}

// vite resolver does not take part when optimizing deps
for (const extension of extensions) {
for (const extension of ['', ...extension]) {
let result = await build.resolve(path + extension, {
namespace,
resolveDir,
Expand Down

0 comments on commit c809d83

Please sign in to comment.