Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 460 Bytes

README.md

File metadata and controls

27 lines (21 loc) · 460 Bytes

vite-plugin-ts-alias

vite plugin to transform tsconfig paths to vite alias

Usage

// 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',
    }),
  ],
});

License

MIT License © 2022 codpoe