fix(@vant/cli): replace vue file import causing duplicate suffixes (#11649)

* fix(@vant/cli):替换 vue 文件导入出现重复后缀

* fix(@vant/cli):替换 vue 文件导入出现重复后缀
This commit is contained in:
hminghe
2023-03-12 14:58:49 +08:00
committed by GitHub
parent b9811558e5
commit 965724e8a5

View File

@@ -127,6 +127,12 @@ export function replaceScriptImportExt(
return;
}
const isExistExt = line.includes(ext);
if (isExistExt) {
return;
}
const pathInfo = getPathByImport(line, filePath);
if (pathInfo) {