dataverse-frontend
dataverse-frontend copied to clipboard
Configure alias for file imports
It would be a good idea to establish an alias for the src
folder to import files in the source code.
To improve readability and reusability of components in a simpler way.
From
import { Alert, AlertMessageKey } from '../../../alert/domain/models/Alert'
import { UpwardHierarchyNode } from '../../../shared/hierarchy/domain/models/UpwardHierarchyNode'
import { FileDownloadSize } from '../../../files/domain/models/FileMetadata'
To
import { Alert, AlertMessageKey } from '@/alert/domain/models/Alert'
import { UpwardHierarchyNode } from '@/shared/hierarchy/domain/models/UpwardHierarchyNode'
import { FileDownloadSize } from '@/files/domain/models/FileMetadata'