Skip to content

Conversation

@bluwy
Copy link
Member

@bluwy bluwy commented Jul 23, 2021

Fixes #1112

Explanation: The previous code that strips TSX doesn't take into account for the generated code without any script tag, which cuts off the first 4 characters. I've fixed this by applying a regex that strips of any TSX fragments generated.

@bluwy
Copy link
Member Author

bluwy commented Jul 23, 2021

Fixed CI issue

@bluwy
Copy link
Member Author

bluwy commented Jul 23, 2021

Changed the replace strategy to handle nested tsx fragments. It should work similar as before with the same generated code.

@jasonlyu123
Copy link
Member

Tested with other test sample files and didn't found any error. Thanks!

@jasonlyu123 jasonlyu123 merged commit 43b0411 into sveltejs:master Jul 24, 2021
@bluwy bluwy deleted the gh-1112 branch July 24, 2021 03:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect type generation for components without script tag

2 participants