jsx-vue2
jsx-vue2 copied to clipboard
monorepo for Babel / Vue JSX related packages
## functional components cannot be converted by using @ vue/babel-sugar-functional-vue in vue2.7.16 ### code  ### in chrome source  and Error info 
I'm getting the following error when using vModel in a JSX/TSX file with the latest version: > Cannot read property 'body' of undefined (babel-sugar-composition-api-render-instance\dist\plugin.js:1:1179) **Packages:** ```js { "name": "vmodel", "version":...
## 问题描述 `.vue` 组件在 `setup() {}` 中返回了 JSX 组件,例如: ```JavaScript defineComponet({ setup() { return () => ok } }) ``` 经过插件编译之后,始终 `const h = this.$createElement`  ## Rspack 配置 ##...
HI!✌ I have 2 components. The first looks like this: ```js import { RenderContext, VNode } from 'vue'; import './BaseTitle.sass'; export interface IBaseTitleProps { level: number; } export const BaseTitle...
Hi there. I defined a variable: `columns` in [column-config.js](https://github.com/youthug/jsx-demo/blob/master/src/config/column-config.js) : ```javascript const columns = [ { label: 'First Name', prop: 'firstName', defaultShow: true, minWidth: '180px', // TODO return el-tag formatter(row,...
``` render (h) { return ( )} ``` 以上jsx如果不过滤换行符,会报错: Unterminated string constant 在老版本jsx插件中, 是会过滤掉属性中的换行符,老版本参考: [ [babel-plugin-transform-vue-jsx](https://github.com/vuejs/babel-plugin-transform-vue-jsx/tree/master) /index.js](https://github.com/vuejs/babel-plugin-transform-vue-jsx/blob/6ad7487579094cc188d470171af8f62335193896/index.js#L207)
{listx.map((info, index) => { return ( })} coonst refsX = this.$refs.xxxxRef ; console.log(refsX ) i hope refsX is a list , but it was an object ,why ?
 