feat(unplugin): expose options for embedded plugins, throw warnings for duplication (#3207)

This commit is contained in:
Anthony Fu
2025-01-30 19:17:42 +08:00
committed by GitHub
parent ce3eaaa7b9
commit 6c20f8a9ea
4 changed files with 75 additions and 26 deletions

View File

@@ -1,7 +1,5 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import AutoImports from 'unplugin-auto-import/vite'
import VueComponents from 'unplugin-vue-components'
import ui from '../src/vite'
@@ -20,12 +18,13 @@ export default defineConfig({
primary: 'green',
neutral: 'slate'
}
},
autoImport: {
imports: ['vue']
},
components: {
dirs: ['../playground/app/components']
}
}),
// these are required as we share the component pages with the Nuxt playground
AutoImports({ imports: ['vue'] }),
VueComponents.vite({
dirs: ['../playground/app/components']
})
],
optimizeDeps: {