vuejs / jsx-vue2

monorepo for Babel / Vue JSX related packages
https://jsx-vue2-playground.netlify.app/
1.47k stars 96 forks source link

fix: prevent inject duplicate h variable #298

Open workkk98 opened 1 year ago

workkk98 commented 1 year ago

issues 297

I think this MR could do two things.

  1. if user defined h variable by himself and init is $createElement or arguments[0], plugin should not inject h agian.
  2. solve issues 297, two preset includes plugin,then h inject twice.
workkk98 commented 1 year ago

image