Commit 10614e84 authored by JJ Kasper's avatar JJ Kasper Committed by Tim Neutkens

Replace windows backslashes with forward (#7942)

slashes for better handling
parent 002ddbe1
...@@ -36,6 +36,8 @@ export function getPageChunks( ...@@ -36,6 +36,8 @@ export function getPageChunks(
const external = new Set<string>() // from node_modules const external = new Set<string>() // from node_modules
const internal = new Set<string>() // from project const internal = new Set<string>() // from project
;[...(manifest.pages[page] || []), ...(pageModules[page] || [])].map(mod => { ;[...(manifest.pages[page] || []), ...(pageModules[page] || [])].map(mod => {
mod = mod.replace(/\\/g, '/')
if (mod.match(/(next-server|next)\//)) { if (mod.match(/(next-server|next)\//)) {
return null return null
} }
......
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