Skip to content

Commit

Permalink
fix stack error
Browse files Browse the repository at this point in the history
  • Loading branch information
benStre committed Mar 12, 2024
1 parent 48c5d83 commit eac730c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsx/parser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function getParseJSX(context: DOMContext, domUtils: DOMUtils) {
// get caller module
else {
const stack = getCallerInfo();
if (stack) {
if (stack && stack[1]) {
module = (
stack[1].name == "jsxs" ? // called via jsxs, skip one more in stack
stack[2] :
Expand Down

0 comments on commit eac730c

Please sign in to comment.