Skip to content

Commit

Permalink
🏷️ coerce Buffer rollup plugin type
Browse files Browse the repository at this point in the history
  • Loading branch information
haliphax committed Jan 21, 2025
1 parent 1def1fa commit 04687c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,14 @@ import inject from "@rollup/plugin-inject";
import vue from "@vitejs/plugin-vue";
import { resolve } from "path";
import { defineConfig } from "vite";
import { InputPluginOption } from "vite/node_modules/rollup";

export default defineConfig({
build: {
emptyOutDir: true,
outDir: "../../dist",
rollupOptions: {
plugins: [inject({ Buffer: ["buffer", "Buffer"] })],
plugins: [inject({ Buffer: ["buffer", "Buffer"] }) as InputPluginOption],
},
},
plugins: [vue()],
Expand Down

0 comments on commit 04687c7

Please sign in to comment.