make vue-template-compiler
library run on browser
const vtc = require("vue-template-compiler-on-browser");
vtc.parseComponent(`your vue sfc file content string`);
import { parseComponent } from "vue-template-compiler-on-browser";
vtc.parseComponent(`your vue sfc file content string`);
window.vtc.parseComponent(`your vue sfc file content string`);