From b841475b63c70eb6d2c9f639fb01d84992dac95e Mon Sep 17 00:00:00 2001 From: yutent Date: Fri, 10 Feb 2023 14:28:16 +0800 Subject: [PATCH] fixed path --- lib/compile-vue.js | 5 ----- package.json | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/compile-vue.js b/lib/compile-vue.js index d00efe9..c708547 100644 --- a/lib/compile-vue.js +++ b/lib/compile-vue.js @@ -98,7 +98,6 @@ export function parseJs( if (!imports[name]) { if (name.startsWith('./')) { - name = name.replace('./', '/assets/js/') if (IS_MPA) { name += `${currentPage}/` } @@ -153,10 +152,6 @@ export function parseJs( } // if (!imports[name]) { - if (!name.startsWith('/') && !name.startsWith('./')) { - name = '/' + name - } - if (!name.endsWith('.js') && !name.endsWith('.vue')) { name += '.js' } diff --git a/package.json b/package.json index 479904d..e38711b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@bytedo/vue-live", "type": "module", - "version": "0.1.4", + "version": "0.1.5", "bin": { "vue-live": "index.js" },