Skip to content

Commit

Permalink
Merge pull request #807 from lPadier/wmr-build-fix
Browse files Browse the repository at this point in the history
Fix building JSX that contains a large object (>5 properties) then JSX in a prop
  • Loading branch information
marvinhagemeister committed Aug 29, 2021
2 parents d8b948c + be5cda0 commit 7774d9e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/seven-birds-refuse.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'wmr': patch
---

Fix building JSX nodes with object with more than 5 properties and then JSX in ap
2 changes: 1 addition & 1 deletion packages/wmr/src/lib/acorn-traverse.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ let codeGenerator = {
} else {
// Astring inserts line indents by default
// eslint-disable-next-line new-cap
astring.baseGenerator.ObjectExpression(node, state);
astring.baseGenerator.ObjectExpression.call(this, node, state);
}
},

Expand Down

0 comments on commit 7774d9e

Please sign in to comment.