修复依赖解析
parent
e057a3ae8d
commit
65e249dcc9
|
@ -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/')
|
||||
|
|
Loading…
Reference in New Issue