diff --git a/lib/compile-vue.js b/lib/compile-vue.js index 2f1615e..f041fe2 100644 --- a/lib/compile-vue.js +++ b/lib/compile-vue.js @@ -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/')