Skip to content

Commit 364aae1

Browse files
authored
feat(ssr): debug failed node resolve (#9432)
1 parent 1c1cf43 commit 364aae1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/vite/src/node/ssr/ssrExternal.ts

+3
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ export function createIsConfiguredAsSsrExternal(
145145
!!configuredAsExternal
146146
)?.external
147147
} catch (e) {
148+
debug(
149+
`Failed to node resolve "${id}". Skipping externalizing it by default.`
150+
)
148151
// may be an invalid import that's resolved by a plugin
149152
return false
150153
}

0 commit comments

Comments
 (0)