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: {