diff --git a/src/renderer/utils/path.ts b/src/renderer/utils/path.ts index d1af3205..c585c11e 100644 --- a/src/renderer/utils/path.ts +++ b/src/renderer/utils/path.ts @@ -5,9 +5,12 @@ export const { extname, dirname, join, - resolve, } = Path +export function resolve (...args: string[]) { + return Path.resolve('/', ...args) +} + export function relative (from: string, to: string) { return Path.relative( from.startsWith('/') ? from : ('/' + from),