webpack vue使用jsx

安装插件 yarn add @vue/babel-plugin-transform-vue-jsx -D

前提 已经配置了babel-loader

在babel的plugins中配置中增加

presets: [
    "@babel/preset-env"
],
plugins:[
      ....
    "@vue/babel-plugin-transform-vue-jsx"
]
 
原文地址:https://www.cnblogs.com/rchao/p/15292872.html