diff --git a/packages/core/src/node/command/handleCache.ts b/packages/core/src/node/command/handleCache.ts index f90e8d5..3bece60 100644 --- a/packages/core/src/node/command/handleCache.ts +++ b/packages/core/src/node/command/handleCache.ts @@ -1,4 +1,5 @@ import fs from 'node:fs' +import { pathToFileURL } from 'node:url' import { CACHE_FOLDER_PATH, CACHE_PACKAGED_FILE_PATH, CACHE_CONFIG_FILE_PATH } from '../alias.js' export type ReviliCache = { @@ -26,7 +27,7 @@ export async function getReviliCache(): Promise { setReviliCache() } - const reviliCache = await import(CACHE_CONFIG_FILE_PATH) + const reviliCache = await import(pathToFileURL(CACHE_CONFIG_FILE_PATH) as unknown as string) return reviliCache.default } diff --git a/packages/core/src/node/viteServer/tailwindcssConfig/index.ts b/packages/core/src/node/viteServer/tailwindcssConfig/index.ts index 0dcf330..43a857a 100644 --- a/packages/core/src/node/viteServer/tailwindcssConfig/index.ts +++ b/packages/core/src/node/viteServer/tailwindcssConfig/index.ts @@ -1,5 +1,4 @@ import { colors } from "./customColors.js"; -import path from "path"; export const tailwindcssConfig = { darkMode: "class",