Skip to content

Commit 55b4b97

Browse files
committed
chore: update
1 parent 58e8323 commit 55b4b97

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

examples/vite-vue3/vite.config.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import UnoCSS from '../../packages-integrations/vite/src/index'
77
export default defineConfig({
88
plugins: [
99
Vue(),
10-
UnoCSS(),
10+
UnoCSS({
11+
virtualModulePrefix: 'custom_vue3',
12+
}) as any,
1113
// legacy(),
1214
],
1315
})

packages-engine/core/src/types.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -688,12 +688,20 @@ export interface UserOnlyOptions<Theme extends object = object> {
688688
* @default 'build'
689689
*/
690690
envMode?: 'dev' | 'build'
691+
691692
/**
692693
* legacy.renderModernChunks need to be consistent with @vitejs/plugin-legacy
693694
*/
694695
legacy?: {
695696
renderModernChunks: boolean
696697
}
698+
699+
/**
700+
* Custom prefix for virtual modules
701+
*
702+
* @default '__uno'
703+
*/
704+
virtualModulePrefix?: string
697705
}
698706

699707
/**

0 commit comments

Comments
 (0)