mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
feat(unplugin): expose options for embedded plugins, throw warnings for duplication (#3207)
This commit is contained in:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user