Skip to content
This repository has been archived by the owner on Jan 10, 2025. It is now read-only.

Adds replaceJsxBody() support for when parent node is root #2085

Merged
merged 2 commits into from
Nov 24, 2021

Conversation

cartogram
Copy link
Contributor

@cartogram cartogram commented Nov 23, 2021

Description

The replaceJsxBody transform would fail if it was operating at the top (root) of the react tree. This PR fixes this and adds a test.

Type of change

  • Patch: Bug (non-breaking change which fixes an issue)
  • Minor: New feature (non-breaking change which adds functionality)
  • Major: Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have added a changelog entry, prefixed by the type of change noted above (Documentation fix and Test update does not need a changelog as we do not publish new version)

@cartogram cartogram requested review from a team and jplhomer November 23, 2021 16:41
@cartogram cartogram mentioned this pull request Nov 23, 2021
4 tasks
@cartogram cartogram merged commit 37d1d0c into main Nov 24, 2021
@cartogram cartogram deleted the @cartogram/replace-jsx-root branch November 24, 2021 16:21
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants