Skip to content

Commit

Permalink
Merge pull request #1003 from basics/feature/optimize-composable-import
Browse files Browse the repository at this point in the history
fix(composables): fix rollup warnings
  • Loading branch information
ThornWalli authored Apr 30, 2024
2 parents 99e6ace + d8796c6 commit 8fe842c
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 20 deletions.
15 changes: 2 additions & 13 deletions src/module.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { resolve, join } from 'pathe';

import {
addImports,
addImportsDir,
createResolver,
defineNuxtModule,
addPluginTemplate,
Expand Down Expand Up @@ -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'));
}
});

Expand Down
2 changes: 0 additions & 2 deletions src/runtime/components/BoosterIframe.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
<script setup>
import { ref, watch, useBoosterComponentObserver } from '#imports';
import { defineProps, defineEmits } from 'vue';
const props = defineProps({
src: {
type: String,
Expand Down
5 changes: 0 additions & 5 deletions src/runtime/composables/index.js

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8fe842c

Please sign in to comment.