Skip to main content
Module

x/vno/core/lib/vue_logger.ts

a build tool for compiling and bundling Vue single-file components
Go to Latest
File
import { Component, Fctry } from "../dts/factory.d.ts";
export function vueLogger( vue: Fctry.Version, root: Component, variable: string,): Fctry.Vue { switch (vue) { case 3: return { state: vue, dep: "import * as Vue from ", cdn: "https://cdn.jsdelivr.net/npm/vue@3.0.5/dist/vue.esm-browser.js", mount: `\n${variable}.mount("#${root.name}")`, }; case 2: return { state: vue, dep: "import Vue from ", cdn: "https://cdn.jsdelivr.net/npm/vue@2.6.12/dist/vue.esm.browser.js", mount: `\n${root.label}.$mount("#${root.name}")`, }; }}