File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/cloudflare/src/cli/build/patches/to-investigate Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -133,13 +133,13 @@ function patchRequireReactDomServerEdge(config: Config) {
133133 ) ;
134134
135135 // the first statement needs to be "use strict"
136- if ( ! stringLiteralExpression || stringLiteralExpression . getText ( ) !== '"use strict"' ) {
136+ if ( stringLiteralExpression ? .getText ( ) !== '"use strict"' ) {
137137 return ;
138138 }
139139
140140 // the second statement (e.exports=require("react-dom/server.edge")) needs to be a binary expression
141141 const binaryExpression = bodyExpressionStatements [ 1 ] . getExpressionIfKind ( ts . SyntaxKind . BinaryExpression ) ;
142- if ( ! binaryExpression || ! binaryExpression . getOperatorToken ( ) . isKind ( ts . SyntaxKind . EqualsToken ) ) {
142+ if ( ! binaryExpression ? .getOperatorToken ( ) . isKind ( ts . SyntaxKind . EqualsToken ) ) {
143143 return ;
144144 }
145145
You can’t perform that action at this time.
0 commit comments