Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit935a66d

Browse files
authored
react-loadable-plugin. Handle undefined opts.caller (vercel#25264)
`caller` - in babel is optional field -https://babeljs.io/docs/en/options#callerAnd it may be not provided by developer in transformFile## Bug- [ ] Related issues linked using `fixes #number`- [ ] Integration tests added## Feature- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.- [ ] Related issues linked using `fixes #number`- [ ] Integration tests added- [ ] Documentation added- [ ] Telemetry added. In case of a feature if it's used or not.## Documentation / Examples- [ ] Make sure the linting passes
1 parentc0a07aa commit935a66d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎packages/next/build/babel/plugins/react-loadable-plugin.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ export default function ({
151151
t.binaryExpression(
152152
'+',
153153
t.stringLiteral(
154-
(state.file.opts.caller.pagesDir
154+
(state.file.opts.caller?.pagesDir
155155
?relativePath(
156156
state.file.opts.caller.pagesDir,
157157
state.file.opts.filename

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp