Skip to content

Commit b8f265c

Browse files
committed
fix: 'require is not defined' on prod for walletconnect
1 parent f5a7835 commit b8f265c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/vite.config.ts

+5
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ import path from 'path';
55
// https://vitejs.dev/config/
66
export default defineConfig({
77
plugins: [vue()],
8+
build: {
9+
commonjsOptions: {
10+
transformMixedEsModules: true, // https://github.com/vitejs/vite/issues/4593
11+
},
12+
},
813
resolve: {
914
alias: {
1015
src: path.resolve(__dirname, 'src'),

0 commit comments

Comments
 (0)