fix(compiler-sfc): vue import

This commit is contained in:
三咲智子 Kevin Deng 2023-11-29 20:58:10 +08:00
parent 0ff307988a
commit 55ef2f0c5f
No known key found for this signature in database
GPG Key ID: 69992F2250DFD93E
1 changed files with 1 additions and 1 deletions

View File

@ -856,7 +856,7 @@ export function compileScript(
for (const key in allBindings) {
if (
allBindings[key] === true &&
['vue', 'vue/vapor'].includes(ctx.userImports[key].source) &&
!['vue', 'vue/vapor'].includes(ctx.userImports[key].source) &&
!ctx.userImports[key].source.endsWith('.vue')
) {
// generate getter for import bindings