From 287538026fcf695dae8fe275a4512894cc1a48bd Mon Sep 17 00:00:00 2001 From: nshen Date: Sat, 27 Nov 2021 16:20:22 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20RELEASE:=20v1.2.11=20,=20fix=20#?= =?UTF-8?q?12?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- src/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index a97002c..9d79541 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vite-plugin-cesium", - "version": "1.2.10", + "version": "1.2.11", "description": "Cesium library plugin for Vite", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/index.ts b/src/index.ts index 60d41b2..cca766c 100644 --- a/src/index.ts +++ b/src/index.ts @@ -36,6 +36,7 @@ function vitePluginCesium( if (c.base) { base = c.base; } + if (base === '') base = './'; if (isBuild) CESIUM_BASE_URL = path.join(base, CESIUM_BASE_URL); const userConfig: UserConfig = { build: {