Refactor(BaseManagement): Optimize the filter of entry file

This commit is contained in:
2024-09-15 18:27:54 +08:00
parent 77551804f7
commit e17fcdb401

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={'请选择入口文件'}