From 7c4b182a61473438cb966aa25d956214734c659d Mon Sep 17 00:00:00 2001 From: Vladislav Tarasov Date: Wed, 19 May 2021 20:32:40 +0300 Subject: [PATCH] Make caller optional --- packages/next/build/babel/plugins/react-loadable-plugin.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/next/build/babel/plugins/react-loadable-plugin.ts b/packages/next/build/babel/plugins/react-loadable-plugin.ts index f6491aac59f3b..705b5ee5a7409 100644 --- a/packages/next/build/babel/plugins/react-loadable-plugin.ts +++ b/packages/next/build/babel/plugins/react-loadable-plugin.ts @@ -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