Skip to content

Commit

Permalink
Make caller optional
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Tarasov committed May 19, 2021
1 parent 9513572 commit 7c4b182
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next/build/babel/plugins/react-loadable-plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ export default function ({
t.binaryExpression(
'+',
t.stringLiteral(
(state.file.opts.caller.pagesDir
(state.file.opts.caller?.pagesDir
? relativePath(
state.file.opts.caller.pagesDir,
state.file.opts.filename
Expand Down

0 comments on commit 7c4b182

Please sign in to comment.