If singlePathName is "A" or "B", in the following generated code, case "./components/A" and case "./components/A/index" are not necessary
switch (n) {
case "./components/A":
case "./components/A/index":
case "./components/A/index.vue":
return ...;
case "./components/B":
case "./components/B/index":
case "./components/B/index.vue":
return ...;
default:
....
For the following dynamic import
If
singlePathName
is"A"
or"B"
, in the following generated code,case "./components/A"
andcase "./components/A/index"
are not necessary