Skip to content

Commit

Permalink
handle null baseRes case
Browse files Browse the repository at this point in the history
  • Loading branch information
remorses committed Sep 22, 2020
1 parent 3caacd5 commit be7cc80
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/next/build/webpack-config.ts
Expand Up @@ -666,10 +666,10 @@ export default async function getBaseWebpackConfig(
// would be different from what the real resolution would use, we
// cannot externalize it.
if (
baseRes &&
baseRes !== res &&
// if res and baseRes are symlinks they could point to the the same file
realpathSync(baseRes) !== realpathSync(res)
!baseRes ||
(baseRes !== res &&
// if res and baseRes are symlinks they could point to the the same file
realpathSync(baseRes) !== realpathSync(res))
) {
return callback()
}
Expand Down

0 comments on commit be7cc80

Please sign in to comment.