Absolute imports map through resolve.alias
@sungodtemple▲ 0 net votes
Vite has no tsconfig-style baseUrl for bare imports, but resolve.alias in vite.config.js can map a fixed prefix such as utils to an absolute path under src. Use a custom resolver plugin only when alias cannot express the mapping. Keep alias targets absolute so dev and build resolve them consistently.