-
-
Notifications
You must be signed in to change notification settings - Fork 6.1k
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
script标签里无法编译第三方组件库 #10809
Comments
Hello @nuaajiangteng. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with |
https://github.com/nuaajiangteng/vite-app |
For Vue JSX, you need to use import { defineConfig } from 'vite';
import vue from '@vitejs/plugin-vue';
import vueJsx from '@vitejs/plugin-vue-jsx';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue(), vueJsx()],
}); |
Describe the bug
代码:
<script setup lang="jsx"> ...... </script>
问题: 无法编译成浏览器可识别的标签
Reproduction
Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: