From 877ba7c8bfac9b5c37c10fdf89905811345026de Mon Sep 17 00:00:00 2001 From: yutent Date: Fri, 19 May 2023 10:40:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BC=80=E5=8F=91=E6=A8=A1=E5=BC=8F,=20?= =?UTF-8?q?=E5=8F=AF=E6=9B=BF=E6=8D=A2vue=E5=92=8Cvue-router=E4=B8=BA?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/dev.js | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/dev.js b/lib/dev.js index 7f0e404..afb25eb 100644 --- a/lib/dev.js +++ b/lib/dev.js @@ -33,6 +33,13 @@ export default async function createServer(root = '', conf = {}) { const INJECT_SCSS = readFile(conf.inject?.scss) const LEGACY_MODE = !!conf.legacy + if (conf.imports['vue-dev']) { + conf.imports.vue = conf.imports['vue-dev'] + } + if (conf.imports['vue-router-dev']) { + conf.imports['vue-router'] = conf.imports['vue-router-dev'] + } + if (USE_HTTPS) { Object.assign(SERVER_OPTIONS, conf.devServer.ssl) diff --git a/package.json b/package.json index 0452c01..9d0d6ec 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "fite", "type": "module", - "version": "1.1.2", + "version": "1.1.3", "bin": { "fite": "index.js" },