Probably you can solve this using this npm package
https://www.npmjs.com/package/vite-tsconfig-paths
one other solution might work is to use regular expression in your path to capture all subpaths
alias: [
{
find: /^@features\/(.*)$/,
replacement: path.resolve(__dirname, 'src/features/$1'),
} ]