Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: fewer side effects codegen for <script setup> #2582

Merged
merged 3 commits into from Apr 4, 2023

Conversation

johnsoncodehk
Copy link
Member

  • If <script> block does not exist, directly generate script setup code to root scope instead of wrapping it into function scope.
  • Support props interface for generic component.

Fixes #2421

@johnsoncodehk johnsoncodehk changed the title feat: new <script setup> codegen feat: fewer side effects codegen for <script setup> Apr 4, 2023
@johnsoncodehk johnsoncodehk merged commit ce73539 into master Apr 4, 2023
6 checks passed
@johnsoncodehk johnsoncodehk deleted the script-setup-scope branch April 4, 2023 14:44
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.

None yet

1 participant