Skip to content

Commit 4906412

Browse files
committed
Dynamically import Torus
1 parent bd334f1 commit 4906412

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/select/wallets/torus.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import Torus from '@toruslabs/torus-embed'
21
import { networkName } from '../../../utilities'
32
import {
43
TorusOptions,
@@ -27,6 +26,7 @@ function torus(options: TorusOptions & CommonWalletOptions): WalletModule {
2726
svg: svg || torusIcon,
2827
iconSrc,
2928
wallet: async () => {
29+
const { default: Torus } = await import('@toruslabs/torus-embed')
3030
const instance = new Torus({
3131
buttonPosition: buttonPosition // default: bottom-left
3232
})

0 commit comments

Comments
 (0)