Vite plugin for @wessberg/di-compiler.
Working with @wessberg/di.
npm i vite-wessberg-di @wessberg/di
Note that there is no need to install @wessberg/di-compiler
in addition to vite-wessberg-di
Just add this plugin to vite config plugins array.
// vite.config.ts
import di from "vite-wessberg-di"
export default defineConfig({
plugins: [di()],
// ...rest config options
})