Skip to content

Commit

Permalink
fix: 'require is not defined' on prod for walletconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
mds1 authored and apbendi committed Dec 3, 2021
1 parent 23f6cd8 commit 87d3139
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import path from 'path';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
build: {
commonjsOptions: {
transformMixedEsModules: true, // https://github.com/vitejs/vite/issues/4593
},
},
resolve: {
alias: {
src: path.resolve(__dirname, 'src'),
Expand Down

0 comments on commit 87d3139

Please sign in to comment.