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

@vitejs/plugin-vue是否支持将xxx.jsx文件编译为custom element的同时,将style以linine css插入到shadow root #303

Open
8 of 9 tasks
decadef20 opened this issue Nov 27, 2023 · 0 comments
Labels
enhancement New feature or request p2-nice-to-have 🍰 Not breaking anything but nice to have (priority)

Comments

@decadef20
Copy link

Related plugins

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

@edison1105 edison1105 added enhancement New feature or request p2-nice-to-have 🍰 Not breaking anything but nice to have (priority) and removed pending triage labels Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request p2-nice-to-have 🍰 Not breaking anything but nice to have (priority)
Projects
None yet
Development

No branches or pull requests

2 participants