Skip to content

Commit

Permalink
feat(ssr): debug failed node resolve (#9432)
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Jul 29, 2022
1 parent 1c1cf43 commit 364aae1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/vite/src/node/ssr/ssrExternal.ts
Expand Up @@ -145,6 +145,9 @@ export function createIsConfiguredAsSsrExternal(
!!configuredAsExternal
)?.external
} catch (e) {
debug(
`Failed to node resolve "${id}". Skipping externalizing it by default.`
)
// may be an invalid import that's resolved by a plugin
return false
}
Expand Down

0 comments on commit 364aae1

Please sign in to comment.