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

fix: use definition from defineProps if possible #3838

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

so1ve
Copy link
Member

@so1ve so1ve commented Jan 2, 2024

fixes #3779, fixes #3820

@johnsoncodehk
Copy link
Member

Sorry for the delay, I think this problem is best solved by defineComponent itself, have you tried its feasibility?

@so1ve
Copy link
Member Author

so1ve commented Mar 20, 2024

I didn't try this approach, but I think making changes to defineComponent is doable 👍

@johnsoncodehk
Copy link
Member

#3779, #3820 should have been resolved via vuejs/core#10801 + 68edc1d.

I reverted the PR's fix but kept the tests, but there are some other tests that are broken due to a regression in Vue 3.5, so they can't be merged for now.

Comment on lines +31 to +38
"pnpm": {
"overrides": {
"@vue/runtime-dom": "alpha",
"@vue/shared": "alpha",
"@vue/compiler-dom": "alpha",
"@vue/compiler-sfc": "alpha",
"vue": "alpha"
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't doing overrides at this level also affect/break vue 2 tests?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does not affect Vue 2 tests. Since this PR will only be merged when Vue 3.5 is released, this json section will be removed before merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants