underfin / vite-plugin-vue2

Vue2 plugin for Vite
620 stars 83 forks source link

SyntaxError: Identifier 'vue' has already been declared #195

Closed miomio-xiao closed 2 years ago

miomio-xiao commented 2 years ago

https://github.com/underfin/vite-plugin-vue2/blob/d88b4e8a38d894f2a2d1ceb50614612d59a01ea4/src/main.ts#L253

If the vue variable is defined in the vue file, there will be a conflict

<script>
import vue from 'vue';

export default {
    // ...
}
</script>