diff --git a/docs/plugins/load-lib-components.js b/docs/plugins/load-lib-components.js index e48f1b9c6..c2ca18b5c 100644 --- a/docs/plugins/load-lib-components.js +++ b/docs/plugins/load-lib-components.js @@ -1,4 +1,5 @@ import Vue from 'vue'; +import VueCompositionAPI from '@vue/composition-api'; import KThemePlugin from '~~/lib/KThemePlugin'; import trackInputModality from '~~/lib/styles/trackInputModality'; @@ -7,4 +8,5 @@ import trackInputModality from '~~/lib/styles/trackInputModality'; // See `KThemePlugin` `$coreOutline` and `globalThemeState.inputModality` trackInputModality({ disableFocusRingByDefault: false }); +Vue.use(VueCompositionAPI); Vue.use(KThemePlugin); diff --git a/lib/useKResponsiveWindow.js b/lib/useKResponsiveWindow.js index 31162d7b5..fdf015e33 100644 --- a/lib/useKResponsiveWindow.js +++ b/lib/useKResponsiveWindow.js @@ -1,7 +1,4 @@ -import Vue from 'vue'; -import VueCompositionApi, { computed, onBeforeUnmount, onMounted, ref } from '@vue/composition-api'; - -Vue.use(VueCompositionApi); +import { computed, onBeforeUnmount, onMounted, ref } from '@vue/composition-api'; /** * Returns window inner width and height