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

使用jsx时热更新无效 #55

Closed
iamouyang21 opened this issue Dec 27, 2021 · 1 comment
Closed

使用jsx时热更新无效 #55

iamouyang21 opened this issue Dec 27, 2021 · 1 comment

Comments

@iamouyang21
Copy link

if you find some problems, please first read the FAQ

if you want some new feature, please know this plugin aims to let codebase work both in vite and vue-cli.

使用jsx时热更新无效。demo代码:

<script lang="jsx"> render() { return
1212
} </script>

vite.config.js配置代码:

{
// ...
pluginOptions: {
vite: {
/**
* Plugin[]
* @default []
/
plugins: [vitecommonjs()]
/
*
* Vite UserConfig.optimizeDeps options
* recommended set include for speedup page-loaded time, e.g. include: ['vue', 'vue-router', '@scope/xxx']
* @default {}
/
optimizeDeps: {},
/
*
* type-checker, recommended disabled for large-scale old project.
* @default false
/
disabledTypeChecker: true,
/
*
* lint code by eslint
* @default false
*/
disabledLint: true,
cssLoaderCompat: false,
itePluginVue3Options: {
jsx: true
}
}
},
}

@IndexXuan
Copy link
Owner

信息太少,无可奈何

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

No branches or pull requests

2 participants