Skip to content

Commit

Permalink
fix: Missing config to make uniswap widget work (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
v-almonacid authored Oct 20, 2023
1 parent 38d61ed commit 4c457d7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/frontend/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ export default defineConfig({
globals: true,
environment: "happy-dom",
},
build: {
commonjsOptions: {
transformMixedEsModules: true,
},
},
resolve: {
alias: {
// hack to prevent uniswap widgets error on vite (see https://github.com/Uniswap/sdk-core/issues/20)
Expand Down

0 comments on commit 4c457d7

Please sign in to comment.