import { resolve } from 'path' ; import type { AliasOptions } from 'vite' ; import { defineConfig } from 'vite' ; const r = ( p ) => resolve ( __dirname , p ) ; export const alias = { 'unocss' : r ( './packages/unocss/src/' ) , '@unocss/core' : r ( './packages/core/src/' ) , '@unocss/vite' : r ( './packages/vite/src/' ) , '@unocss/cli' : r ( './packages/cli/src/' ) , '@unocss/inspector' : r ( './packages/inspector/node/' ) , '@unocss/preset-mini' : r ( './packages/preset-mini/src/' ) , '@unocss/preset-wind' : r ( './packages/preset-wind/src/' ) , '@unocss/preset-uno' : r ( './packages/preset-uno/src/' ) , '@unocss/preset-web-fonts' : r ( './packages/preset-web-fonts/src/' ) , '@unocss/preset-attributify' : r ( './packages/preset-attributify/src/' ) , '@unocss/preset-icons' : r ( './packages/preset-icons/src/' ) , } ; export default defineConfig ( { optimizeDeps : { entries : [ ] , } , resolve : { alias , } , test : { isolate : false , } , } ) ;