Refactor(BaseManagement): Optimize the filter of entry file

This commit is contained in:
2024-10-26 17:02:26 +08:00
parent 419222aba7
commit bc1d242a01

View File

@@ -304,7 +304,10 @@ const Base = () => {
![
IMPORT_MAP_FILE_NAME,
TS_CONFIG_FILE_NAME
].includes(value)
].includes(value) &&
!value.endsWith('.d.ts') &&
!value.endsWith('.css') &&
!value.endsWith('.json')
)
.map((value) => ({ value, label: value }))}
placeholder={'请选择入口文件'}