From ede89959fb5f1ae37f55cfb902c13d7ebeaf45ca Mon Sep 17 00:00:00 2001 From: RafalGoslawski Date: Sun, 26 Jan 2025 00:43:56 +0100 Subject: [PATCH] Fixed edge case when working dir is root --- src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index 53ea547..910684b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -210,7 +210,7 @@ export const staticPlugin = async ( } }) - const assetsDir = assets[0] === sep ? assets : resolve() + sep + assets + const assetsDir = assets[0] === sep ? assets : resolve(assets) if ( alwaysStatic ||