UNPKG

vue-instantsearch-ssr

Version:

👀 Lightning-fast Algolia search for Vue apps

12 lines (9 loc) • 289 B
/* eslint import/namespace: ['error', { allowComputed: true }]*/ import * as widgets from './widgets'; export const plugin = { install(localVue) { Object.keys(widgets).forEach(widgetName => { localVue.component(widgets[widgetName].name, widgets[widgetName]); }); }, };