Skip to content

Codpoe/vite-plugin-ts-alias

Repository files navigation

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

About

vite plugin to transform tsconfig paths to alias

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published