Skip to content

Commit

Permalink
chore: add return type to requireResolveFromRootWithFallback
Browse files Browse the repository at this point in the history
  • Loading branch information
sapphi-red committed May 31, 2022
1 parent d784dff commit d449ace
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -794,7 +794,7 @@ export function getHash(text: Buffer | string): string {
export const requireResolveFromRootWithFallback = (
root: string,
id: string
) => {
): string => {
// Search in the root directory first, and fallback to the default require paths.
const fallbackPaths = _require.resolve.paths?.(id) || []
const path = _require.resolve(id, {
Expand Down

0 comments on commit d449ace

Please sign in to comment.