vite-plugin-vue
vite-plugin-vue copied to clipboard
@vitejs/plugin-vue是否支持将xxx.jsx文件编译为custom element的同时,将style以linine css插入到shadow root
Related plugins
-
[X] plugin-vue
-
[ ] plugin-vue-jsx
Describe the bug
https://github.com/vitejs/vite-plugin-vue/tree/main/packages/plugin-vue#using-vue-sfcs-as-custom-elements 如文档所说,如果需要编译到custom elements,SFC的文件的style是被合理处理过的。
但是jsx格式的文件并没有。
jsx文件代码如下:
import style from './style.module.less'
export default {
name: 'Name',
props: {}
data() {
return {}
},
render() {
return <div></div>
}
}
Reproduction
稍后提供
Steps to reproduce
No response
System Info
Mac OS 13.5.1 (22G90)
Used Package Manager
npm
Logs
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guidelines.
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
- [X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
- [X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
- [X] The provided reproduction is a minimal reproducible example of the bug.