Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 505 Bytes

File metadata and controls

25 lines (18 loc) · 505 Bytes

vue-template-compiler-on-browser

Outline

make vue-template-compiler library run on browser

API

commonjs

const vtc = require("vue-template-compiler-on-browser");
vtc.parseComponent(`your vue sfc file content string`);

ESM

import { parseComponent } from "vue-template-compiler-on-browser";
vtc.parseComponent(`your vue sfc file content string`);

browser

window.vtc.parseComponent(`your vue sfc file content string`);