import { defineConfig } from "vite";
import { vanillaExtractPlugin } from "@vanilla-extract/vite-plugin";
import { ImageLoader } from "esbuild-vanilla-image-loader";
export default defineConfig({
plugins: [
vanillaExtractPlugin({
esbuildOptions: {
plugins: [
ImageLoader(), // error here
],
},
}),
],
});
I get the type error:
Type 'import("./node_modules/.pnpm/esbuild@0.15.18/node_modules/esbuild/lib/main").Plugin' is not assignable to type 'import("./node_modules/.pnpm/esbuild@0.17.6/node_modules/esbuild/lib/main").Plugin'.
When using with vite
I get the type error: