Skip to content

Commit

Permalink
fix missing stringify
Browse files Browse the repository at this point in the history
  • Loading branch information
shuding committed Oct 20, 2022
1 parent 008a962 commit 4823dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/build/webpack/loaders/next-app-loader.ts
Expand Up @@ -94,7 +94,7 @@ async function createTreeCodeFromPath({
}
return `${
file === FILE_TYPES.layout
? `layoutOrPagePath: '${filePath}',`
? `layoutOrPagePath: '${JSON.stringify(filePath)}',`
: ''
}'${file}': () => require(${JSON.stringify(filePath)}),`
})
Expand Down

0 comments on commit 4823dd5

Please sign in to comment.