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" },