Skip to content

Commit

Permalink
Replace windows backslashes with forward (#7942)
Browse files Browse the repository at this point in the history
slashes for better handling
  • Loading branch information
ijjk authored and timneutkens committed Jul 13, 2019
1 parent 002ddbe commit 10614e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/next/build/webpack/plugins/chunk-graph-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ export function getPageChunks(
const external = new Set<string>() // from node_modules
const internal = new Set<string>() // from project
;[...(manifest.pages[page] || []), ...(pageModules[page] || [])].map(mod => {
mod = mod.replace(/\\/g, '/')

if (mod.match(/(next-server|next)\//)) {
return null
}
Expand Down

0 comments on commit 10614e8

Please sign in to comment.