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-sfc): fix import usage check in template strings case sensitive #4363

Closed
wants to merge 1 commit into from

Conversation

ygj6
Copy link
Member

@ygj6 ygj6 commented Aug 17, 2021

fix: #4358

Solve the following scene problems:

<script setup lang="ts">
import Test1 from './Test1.vue'
import test2 from './test2.vue'
</script>

<template>
  <h1 style="color: green">App.vue</h1>
  <Test1 />
  <test2 />
</template>

Here will change test2 to Test2, caused the mismatch.
https://github.com/vuejs/vue-next/blob/03abc2573c9f6f98fffd357ce983a667c28a62d4/packages/compiler-sfc/src/compileScript.ts#L339-L340

@yyx990803
Copy link
Member

Sorry I didn't see this PR when I worked on 57f1081

Do note your change actually breaks the case of mapping <foo-qux> to FooQux

@yyx990803 yyx990803 closed this Aug 17, 2021
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.

Invalid vnode type when creating vnode: undefined.
2 participants