Skip to content
This repository was archived by the owner on Sep 21, 2019. It is now read-only.

[wip] Break down default export with variable assignment #41

Closed
wants to merge 6 commits into from

Conversation

mohsen1
Copy link
Contributor

@mohsen1 mohsen1 commented May 19, 2018

This change set introduces a new transform that breaks down an invalid code like this:

export default const MyComponent: React.RFC = () => null;

to

const MyComponent: React.RFC = () => null;
export default MyComponent

Fixes #38

@mohsen1
Copy link
Contributor Author

mohsen1 commented May 20, 2018

Getting text of newly added nodes (synthetic nodes) is something I've always struggled with in this repo. Asking the TypeScript team to help me with it here. The failing test is result of trying to access text of a synthetic node.

@mohsen1
Copy link
Contributor Author

mohsen1 commented Jul 3, 2018

I forked this repo and now maintaining it there. This pull request is moved to
mohsen1#1

@mohsen1 mohsen1 closed this Jul 3, 2018
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.

1 participant