| unknown>() +modulesCache.set('unocss', __unocss) + +export function clearModuleCache() { + modulesCache.clear() + modulesCache.set('unocss', __unocss) +} + +export async function evaluateUserConfig (configStr: string): Promise { + const code = configStr + .replace(/import\s*...
const modulesCache = new Map<string, Promise<unknown> | unknown>() modulesCache.set('unocss', __unocss) export function clearModuleCache() { modulesCache.clear() modulesCache.set('unocss', __unocss) } export async function evaluateUserConfig<U = UserConfig>(configStr: string): Promis...
export type ModuleCache = Map<string, Promise<unknown> | unknown>const globalCache: ModuleCache = new Map()export function clearGlobalModuleCache() { globalCache.clear() }export async function evaluateUserConfig<U = UserConfig>(configStr: string): Promise<U | undefined> { ...
const modulesCache = new Map<string, Promise<unknown> | unknown>() modulesCache.set('unocss', __unocss) export function clearModuleCache() { modulesCache.clear() modulesCache.set('unocss', __unocss) } export async function evaluateUserConfig<U = UserConfig>(configStr: string): Promise<...
const modulesCache = new Map<string, Promise<unknown> | unknown>() modulesCache.set('unocss', __unocss) export function clearModuleCache() { modulesCache.clear() modulesCache.set('unocss', __unocss) } export async function evaluateUserConfig<U = UserConfig>(configStr: string): Promise<...