diff --git a/src/index.js b/src/index.js index 4c95ba2..9de0be4 100755 --- a/src/index.js +++ b/src/index.js @@ -17,7 +17,7 @@ if (typeof window !== 'undefined') { } else if (typeof global !== 'undefined') { GlobalVue = global.Vue; } -if (GlobalVue) { +if (GlobalVue && 'use' in GlobalVue) { GlobalVue.use(plugin); }