fixed path

pull/1/head 0.1.5
yutent 2023-02-10 14:28:16 +08:00
parent 61d935d42a
commit b841475b63
2 changed files with 1 additions and 6 deletions

View File

@ -98,7 +98,6 @@ export function parseJs(
if (!imports[name]) { if (!imports[name]) {
if (name.startsWith('./')) { if (name.startsWith('./')) {
name = name.replace('./', '/assets/js/')
if (IS_MPA) { if (IS_MPA) {
name += `${currentPage}/` name += `${currentPage}/`
} }
@ -153,10 +152,6 @@ export function parseJs(
} }
// //
if (!imports[name]) { if (!imports[name]) {
if (!name.startsWith('/') && !name.startsWith('./')) {
name = '/' + name
}
if (!name.endsWith('.js') && !name.endsWith('.vue')) { if (!name.endsWith('.js') && !name.endsWith('.vue')) {
name += '.js' name += '.js'
} }

View File

@ -1,7 +1,7 @@
{ {
"name": "@bytedo/vue-live", "name": "@bytedo/vue-live",
"type": "module", "type": "module",
"version": "0.1.4", "version": "0.1.5",
"bin": { "bin": {
"vue-live": "index.js" "vue-live": "index.js"
}, },