Skip to content

Commit

Permalink
fix: vite buffer polyfill
Browse files Browse the repository at this point in the history
Co-authored-by: horsefacts <webmaster@terminally.online>
  • Loading branch information
moaazsidat and horsefacts committed Feb 14, 2024
1 parent e5fa7ef commit e59bea0
Show file tree
Hide file tree
Showing 3 changed files with 829 additions and 9 deletions.
3 changes: 2 additions & 1 deletion examples/frontend-only/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
"@farcaster/auth-kit": "^0.1.4",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"viem": "^2.0.3"
"viem": "^2.0.3",
"vite-plugin-node-polyfills": "^0.21.0"
},
"devDependencies": {
"@types/react": "^18.2.43",
Expand Down
3 changes: 2 additions & 1 deletion examples/frontend-only/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { nodePolyfills } from "vite-plugin-node-polyfills";

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [react(), nodePolyfills({ include: ["buffer"] })],
});
Loading

0 comments on commit e59bea0

Please sign in to comment.