From 4813693361c717d813a506a27e7bdfe36b7e5c57 Mon Sep 17 00:00:00 2001 From: Nguyen Van Viet Date: Tue, 11 Jun 2024 17:05:37 +0700 Subject: [PATCH] fix: wallet connect issue (#2501) --- vite.config.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 919a6278d2..0d8962e09d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,7 +1,7 @@ import GlobalPolyFill from '@esbuild-plugins/node-globals-polyfill' import lingui from '@lingui/vite-plugin' import react from '@vitejs/plugin-react-swc' -import path from 'path' +import path, { resolve } from 'path' import { defineConfig } from 'vite' import checker from 'vite-plugin-checker' import svgrPlugin from 'vite-plugin-svgr' @@ -53,6 +53,10 @@ export default defineConfig({ 'react-redux': 'react-redux/dist/react-redux.js', '@': path.resolve(__dirname, './src/'), 'react-dom/client': 'react-dom/profiling', + '@walletconnect/ethereum-provider': resolve( + __dirname, + 'node_modules/@walletconnect/ethereum-provider/dist/index.umd.js', + ), }, }, server: {