angular - ใช้แผนที่เฉพาะไดเรกทอรีระดับแรกโดยใช้เส้นทาง tsconfig
การมีโครงสร้างโฟลเดอร์เช่น
app
entity
entity.module.ts
components
entity
entity.component.ts
table
table.module.ts
components
...
ฉันต้องการแมปไปยังทางลัดของพาธ @module เท่านั้น
app/entity/entity.module.ts
app/table/table.module.ts
อย่างไรก็ตาม เมื่อใช้
"@module/*": ["app/entity/*", "app/table/*"]
สามารถเข้าถึงทุกโฟลเดอร์ย่อยได้เช่นกัน
มีวิธีใดที่จะทำให้สำเร็จได้บ้าง?