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(compiler-core): fix resolveSetupReference #11438

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

linzhe141
Copy link
Contributor

close #11437

Copy link

Size Report

Bundles

File Size Gzip Brotli
runtime-dom.global.prod.js 90 kB 34.5 kB 31.1 kB
vue.global.prod.js 147 kB 54 kB 48.1 kB

Usages

Name Size Gzip Brotli
createApp 49.8 kB 19.5 kB 17.8 kB
createSSRApp 53.3 kB 21 kB 19.1 kB
defineCustomElement 52 kB 20.3 kB 18.5 kB
overall 63.3 kB 24.5 kB 22.3 kB

if (bindings[PascalName] === type) {
return PascalName
}
if (bindings[camelName] === type) {
Copy link
Member

Choose a reason for hiding this comment

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

This is not the right fix.
consider:

import viewComponent from '/src/components/ViewComponent.vue' // v is lowercase
async function ViewComponent(index) { // V is uppercase

}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for your review, I will try to modify it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

But after thinking about it, I still think that such a tag should match PascalName, and the editor seems to match it in this way.

image

Copy link
Member

Choose a reason for hiding this comment

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

Yes, PascalName is recommended in the document, but this actual a breaking change.

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

Successfully merging this pull request may close these issues.

Vue crashes when function name is similar to imported component
2 participants