Привет. У меня вот так сделано:
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
features: path.resolve(__dirname, "./src/features"),
assets: path.resolve(__dirname, "./src/assets"),
helpers: path.resolve(__dirname, "./src/helpers"),
utils: path.resolve(__dirname, "./src/utils"),
interfaces: path.resolve(__dirname, "./src/interfaces"),
},
},
также в tsconfig в compilerOptions:
"paths": {
"@/*": ["src/*"],
"features/*": ["src/features/*"],
"assets": ["src/assets"],
"helpers": ["src/helpers"],
"utils": ["src/utils"],
"interfaces": ["src/interfaces"]
},