vite-plugin-tspaths
v1.0.0
Published
Vite plugin to allow use of tsconfig paths
Downloads
1
Maintainers
Readme
Setup
Will expand on this later, for now:
npm install -D vite-plugin-tspaths
// vite.config.ts
import { defineConfig } from "vite";
import configAliasVitePlugin from "vite-plugin-tspaths";
export default defineConfig({
plugins: [configAliasVitePlugin()],
});
Options
By default it will look at the root that is set in your Vite config. ./tsconfig.json
.
If you want to specify somewhere else, do not put "./" before.
{
configPath: "configs/tsconfig.json"; // ex
}