Vue.js 有没有办法将VueJS模板字符串转换为createElement语法

Vue.js 有没有办法将VueJS模板字符串转换为createElement语法,vue.js,web-component,stenciljs,tsx,Vue.js,Web Component,Stenciljs,Tsx,我正在为基于vuejs的stenciljs的web组件编写包装器。我需要能够将vuejs组件或模板字符串作为我的web组件的VNode传递。 有没有办法将vuejs模板字符串转换为 我的组件 到 createElement('div','My component') 语法 多谢各位 更新 从vue文档: // render: function anonymous() { with(this){return _c('div',[_m(0),(message)?_c('p',[_v(_s(mes

我正在为基于vuejs的stenciljs的web组件编写包装器。我需要能够将vuejs组件或模板字符串作为我的web组件的VNode传递。 有没有办法将vuejs模板字符串转换为

我的组件
createElement('div','My component')
语法

多谢各位

更新 从vue文档:

// render:
function anonymous() {
  with(this){return _c('div',[_m(0),(message)?_c('p',[_v(_s(message))]):_c('p',[_v("No message.")])])}
}

// staticRenderFns:
_m(0): function anonymous() {
  with(this){return _c('header',[_c('h1',[_v("I'm a template!")])])}
}

模板编译可能是您要寻找的答案:如果成功,请更新您的答案。您的意思是?模板编译可能是您要寻找的答案:如果成功,请更新您的答案。您的意思是?