vite plugin to transform tsconfig paths to vite alias
// vite.config.ts
import tsAlias from 'vite-plugin-ts-alias';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
tsAlias({
/**
* tsconfig name, optional.
* @default 'tsconfig.json'
*/
tsConfigName: 'tsconfig.json',
}),
],
});
MIT License © 2022 codpoe