修复依赖解析

pull/1/head
yutent 2023-02-17 16:41:25 +08:00
parent e057a3ae8d
commit 65e249dcc9
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ export function parseJs(
return (
code
.replace(
/import (.*?) from (["'])(.*?)\2/g,
/import ([\w\W]*?) from (["'])(.*?)\2/g,
function (m, alias, q, name) {
if (name.startsWith('@/')) {
name = name.replace('@/', '/assets/js/')