From 175e381c5af3ef36ea25476454544162d2a17d62 Mon Sep 17 00:00:00 2001 From: Yannick Lohse Date: Tue, 10 Sep 2024 17:05:38 +0200 Subject: [PATCH] Revert "fix: vite root directory not taken into account when set" This reverts commit ca4472463b3d156b1e8c024d48861491d119e814. --- src/index.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/index.ts b/src/index.ts index e2e0290..f0cc832 100644 --- a/src/index.ts +++ b/src/index.ts @@ -42,11 +42,7 @@ export default function vitePluginCesium(options: VitePluginCesiumOptions = {}): if (base === '') base = './'; } if (c.build?.outDir) { - if (c.root !== undefined) { - outDir = path.join(c.root, c.build.outDir); - } else { - outDir = c.build.outDir; - } + outDir = c.build.outDir; } CESIUM_BASE_URL = path.posix.join(base, CESIUM_BASE_URL); const userConfig: UserConfig = {};