// vite.config.js or similar
{
resolve: {
alias: {
'@components': '/src/components'
}
}
}
[ ] Then update the imports like
from import ColorTextField from '../../../../components/ColorTextField/ColorTextField';
to import ColorTextField from '@components/ColorTextField/ColorTextField';
from
import ColorTextField from '../../../../components/ColorTextField/ColorTextField';
toimport ColorTextField from '@components/ColorTextField/ColorTextField';