import * as components from './components';

const VuePlugin = {
    install(Vue){
        if (VuePlugin.installed) return;
        VuePlugin.installed = true;
        for (let key in components) {
            Vue.component(key, components[key])
        }
    }
};

if (typeof window !== 'undefined' && window.Vue) {
    window.Vue.use(VuePlugin);
}

export default VuePlugin;
import * as components from './components';

const VuePlugin = {
    install: function (Vue) {
        if (VuePlugin.installed) return;
        VuePlugin.installed = true;
        for (let key in components) {
            Vue.component(key, components[key])
        }
    }
};

if (typeof window !== 'undefined' && window.Vue) {
    window.Vue.use(VuePlugin);
}

export default VuePlugin;
Use old function syntax for better UglifyJs compability
Use old function syntax for better UglifyJs compability
