8b22738217
* Chore: init * chore: init * feat: added basic dapps and improved README * fix: Unified env.example and added comments with instructions * fix: better usage instruction in readme * fix: removed advanced section * fix: added dapps and wallets * fix: added web3inbox * Update basic/dapps/web3inbox/README.md Co-authored-by: Ben Kremer <ben@walletconnect.com> * Update basic/dapps/ethereum-provider/src/App.tsx Co-authored-by: Gancho Radkov <43912948+ganchoradkov@users.noreply.github.com> * chore: added detailed README for basic section * chore(deps): updated deps for universal-provider-solana * fix: multiple suggestions --------- Co-authored-by: Boidushya Bhattacharya <boidushyabhattacharya@gmail.com> Co-authored-by: Ben Kremer <ben@walletconnect.com> Co-authored-by: Gancho Radkov <43912948+ganchoradkov@users.noreply.github.com>
23 lines
568 B
TypeScript
23 lines
568 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react-swc";
|
|
import { NodeGlobalsPolyfillPlugin } from "@esbuild-plugins/node-globals-polyfill";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
optimizeDeps: {
|
|
esbuildOptions: {
|
|
// Node.js global to browser globalThis
|
|
define: {
|
|
global: "globalThis",
|
|
},
|
|
// Enable esbuild polyfill plugins
|
|
plugins: [
|
|
NodeGlobalsPolyfillPlugin({
|
|
buffer: true,
|
|
}),
|
|
],
|
|
},
|
|
},
|
|
});
|