Skip to content

Commit 131c398

Browse files
committed
Add torus to include array from optimizeDeps
1 parent 140baa1 commit 131c398

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

docs/svelte.config.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,7 @@ const config = {
4343
'@web3-react/url',
4444
'@web3-onboard/*'
4545
],
46-
plugins: [
47-
nodePolyfills({
48-
include: ['node_modules/**/*.js', new RegExp('node_modules/.vite/.*js')],
49-
crypto: true,
50-
http: true
51-
})
52-
]
46+
plugins: [nodePolyfills({ crypto: true, http: true })]
5347
},
5448
commonjsOptions: {
5549
transformMixedEsModules: true
@@ -86,6 +80,7 @@ const config = {
8680
'@web3-onboard/core',
8781
'@web3-onboard/gas',
8882
'@web3-onboard/sequence',
83+
'@web3-onboard/torus',
8984
'js-sha3',
9085
'@ethersproject/bignumber'
9186
]

0 commit comments

Comments
 (0)