Handle windows backslashes when checking ssr-prepass (#8016)
This commit is contained in:
parent
8f662c44c9
commit
3c1355686a
1 changed files with 3 additions and 1 deletions
|
@ -247,7 +247,9 @@ export default async function getBaseWebpackConfig(
|
|||
) {
|
||||
// if it's the Next.js' require mark it as external
|
||||
// since it's not used
|
||||
if (context.includes('next-server/dist/server')) {
|
||||
if (
|
||||
context.replace(/\\/g, '/').includes('next-server/dist/server')
|
||||
) {
|
||||
return callback(undefined, `commonjs ${request}`)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue