Commit 3c135568 authored by JJ Kasper's avatar JJ Kasper Committed by Tim Neutkens

Handle windows backslashes when checking ssr-prepass (#8016)

parent 8f662c44
......@@ -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}`)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment