diff --git a/src/module.js b/src/module.js index d71d2d346b..af9a5ca2a0 100644 --- a/src/module.js +++ b/src/module.js @@ -1,7 +1,7 @@ import { resolve, join } from 'pathe'; import { - addImports, + addImportsDir, createResolver, defineNuxtModule, addPluginTemplate, @@ -83,18 +83,7 @@ export default defineNuxtModule({ await addBuildTemplates(nuxt, moduleOptions); - addImports( - [ - 'useBoosterComponentObserver', - 'useBoosterCritical', - 'useBoosterConfig', - 'useBoosterFonts', - 'useBoosterHead' - ].map(name => ({ - name, - from: resolve(runtimeDir, 'composables/index') - })) - ); + addImportsDir(resolve(runtimeDir, 'composables')); } }); diff --git a/src/runtime/components/BoosterIframe.vue b/src/runtime/components/BoosterIframe.vue index 9e417fc306..ee536aaacc 100644 --- a/src/runtime/components/BoosterIframe.vue +++ b/src/runtime/components/BoosterIframe.vue @@ -12,8 +12,6 @@