codesandbox-client icon indicating copy to clipboard operation
codesandbox-client copied to clipboard

use updated astring generator

Open barelyhuman opened this issue 10 months ago • 4 comments

What kind of change does this PR introduce?

Enhancement / Fix

What is the current behavior?

JSXFragment, JSXSpreadAttributes will not be rendered properly

What is the new behavior?

Handles the above with added code in the original library

What steps did you take to test this? This is required before we can merge, make sure to test the flow you've updated.

N/A

Checklist

  • [x] Documentation - N/A
  • [x] Testing
  • [x] Ready to be merged
  • [ ] Added myself to contributors table

Waiting on the instruction, to do the above if the team still uses the babel transpiler and is not already handling the above mentioned Tokens elsewhere

barelyhuman avatar Aug 10 '23 17:08 barelyhuman

This branch is running in CodeSandbox. Use the links below to review this PR faster.
CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders | Preview

codesandbox[bot] avatar Aug 10 '23 17:08 codesandbox[bot]

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 134b07d9200eac0ee35a9d95ab07f6f3f455974c:

Sandbox Source
Notifications Test Configuration

codesandbox-ci[bot] avatar Aug 10 '23 17:08 codesandbox-ci[bot]

Hey! Thanks for the contribution, do you have an example where we're currently not parsing/rendering this correctly?

CompuIves avatar Aug 15 '23 10:08 CompuIves

Not sure, I didn't go through the entire codebase but the reason for update was the missing JSXEmptyExpression and JSXFragment writers missing in the original code which was derived from v0.1.x of astring-jsx which hasn't been updated with the new additions in acorn-jsx

barelyhuman avatar Aug 15 '23 10:08 barelyhuman