Vite Installation
Integrating the Deposit Widget into a Vite app
Vite Installation Guide for the Deposit Widget
Prerequisites
Installation Steps
Step 1: Install the package
yarn add @0xsquid/deposit-widgetStep 2: Add Polyfills
yarn add vite-plugin-node-polyfills -Dimport { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import { nodePolyfills } from "vite-plugin-node-polyfills";
export default defineConfig({
plugins: [react(), nodePolyfills()],
});Step 3: Render the widget
Customization
Running Your Vite App
Last updated