UNPKG

vue-flip-animation

Version:

# Installation

16 lines (15 loc) 473 B
const { switchVersion, loadModule } = require("./utils"); const Vue = loadModule("vue"); if (!Vue || typeof Vue.version !== "string") { console.warn( '[vue3-sketch-ruler] Vue is not found. Please run "npm install vue" to install.' ); } else if (Vue.version.startsWith("2.")) { switchVersion(2); } else if (Vue.version.startsWith("3.")) { switchVersion(3); } else { console.warn( `[vue3-sketch-ruler] Vue version v${Vue.version} is not suppported.` ); }