babel-plugin-jsx
babel-plugin-jsx copied to clipboard
JSX for Vue 3
### 🐛 Bug description my project render by vue-cli ```js // this is not work remove(file, actions)} /> // this work fine remove(file, actions)}/> ``` ### 🏞 Desired result ###...
### 🐛 Bug description ```jsx const App = () => ( Hello World ) ``` is transpiled to a invalid js code ([Vue JSX Explorer](https://vue-jsx-explorer.netlify.app/#const%20App%20%3D%20()%20%3D%3E%20(%0D%0A%20%20%3Cdiv%0D%0A%20%20%20%20class%3D%22%0D%0A%20%20%20%20%20%20foo%0D%0A%20%20%20%20%20%20bar%0D%0A%20%20%20%20%22%0D%0A%20%20%3E%0D%0A%20%20%20%20Hello%20World%0D%0A%20%20%3C%2Fdiv%3E%0D%0A)%0D%0A)). Babel/TS supports this syntax ([Babel...
### 🐛 Bug description When using a number input, pressing arrow keys creates this warning. ``` ```  ### 🏞 Desired result No warning. ### 🚑 Other information Edit: TBH...
## VButton ``` import { computed } from "vue"; interface Props { theme?: string; size?: string; level?: string; disabled?: boolean; loading?: boolean; } const props = withDefaults(defineProps(), { theme: "button",...
### Version 3.2.31 ### Reproduction link [stackblitz.com](https://stackblitz.com/edit/nuxt-starter-vvkmga) ### Steps to reproduce npm run dev ### What is expected? no errors ### What is actually happening? runtime-core.esm-bundler.js:4043 Hydration completed but contains...
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7. Release notes Sourced from node-fetch's releases. v2.6.7 Security patch release Recommended to upgrade, to not leak sensitive cookie and authentication header information to 3th...
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.30 to 3.3.4. Changelog Sourced from nanoid's changelog. 3.3.4 Fixed --help in CLI (by @Lete114). 3.3.3 Reduced size (by Anton Khlynovskiy). 3.3.2 Fixed enhanced-resolve support. 3.3.1 Reduced...
Bumps [trim-off-newlines](https://github.com/stevemao/trim-off-newlines) from 1.0.1 to 1.0.3. Commits c3b28d3 1.0.3 6226c95 Merge pull request #4 from Trott/fix-it-again c77691d fix: remediate ReDOS further 76ca93c chore: pin mocha to version that works with...
### 🧐 Problem Description - 对于class和className 区别我很迷惑 - 假定有一个 Demo组件 - Demo组件使用的时候我想再给组件加一个类名叫做test2,预期渲染出来是2个类名合并的 class="test1 test2 ", 但是我发现 test2 会直接把test1 给覆盖掉 - 如果定义成Demo2那样,就会正常的合并 - 如果定义成Demo3那样,则没有发生任何变化 ### 💻 Sample code ```js const Demo...
### 🧐 Problem Description 如果直接通过 defineComponent(function xxxx(props) {}} ) 里获取props的话 会拿不到props里的数据 通过 在 函数内使用 defineProps 也是拿不到对应的值 包括通过使用toRef 和 toRefs 也拿不到 必须要通过才能拿到 有什么更简洁的方式么 defineComponent({ props: ['xxx'] setup (props) { return ()...