mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-20 06:51:46 +01:00
fix(unplugin): invalid url schema on windows (#2899)
This commit is contained in:
committed by
GitHub
parent
4c5a4fb526
commit
9b4694f8d9
@@ -1,6 +1,6 @@
|
||||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
import { join } from 'pathe'
|
||||
import { join, normalize } from 'pathe'
|
||||
import { createUnplugin } from 'unplugin'
|
||||
import AutoImport from 'unplugin-auto-import'
|
||||
import { defu } from 'defu'
|
||||
@@ -41,7 +41,7 @@ export interface NuxtUIOptions extends Omit<ModuleOptions, 'fonts' | 'colorMode'
|
||||
colorMode?: boolean
|
||||
}
|
||||
|
||||
export const runtimeDir = fileURLToPath(new URL('./runtime', import.meta.url))
|
||||
export const runtimeDir = normalize(fileURLToPath(new URL('./runtime', import.meta.url)))
|
||||
|
||||
export const NuxtUIPlugin = createUnplugin<NuxtUIOptions | undefined>((_options = {}, meta) => {
|
||||
const options = defu(_options, { fonts: false, devtools: { enabled: false } }, defaultOptions)
|
||||
|
||||
Reference in New Issue
Block a user