mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(@vant/cli): replace vue file import causing duplicate suffixes (#11649)
* fix(@vant/cli):替换 vue 文件导入出现重复后缀 * fix(@vant/cli):替换 vue 文件导入出现重复后缀
This commit is contained in:
parent
b9811558e5
commit
965724e8a5
@ -127,6 +127,12 @@ export function replaceScriptImportExt(
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const isExistExt = line.includes(ext);
|
||||||
|
if (isExistExt) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
const pathInfo = getPathByImport(line, filePath);
|
const pathInfo = getPathByImport(line, filePath);
|
||||||
|
|
||||||
if (pathInfo) {
|
if (pathInfo) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user