修复依赖解析
parent
e057a3ae8d
commit
65e249dcc9
|
@ -91,7 +91,7 @@ export function parseJs(
|
||||||
return (
|
return (
|
||||||
code
|
code
|
||||||
.replace(
|
.replace(
|
||||||
/import (.*?) from (["'])(.*?)\2/g,
|
/import ([\w\W]*?) from (["'])(.*?)\2/g,
|
||||||
function (m, alias, q, name) {
|
function (m, alias, q, name) {
|
||||||
if (name.startsWith('@/')) {
|
if (name.startsWith('@/')) {
|
||||||
name = name.replace('@/', '/assets/js/')
|
name = name.replace('@/', '/assets/js/')
|
||||||
|
|
Loading…
Reference in New Issue