diff --git a/.eslintrc.json b/.eslintrc.json index 8b8d44444..1e23acb55 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -38,6 +38,14 @@ "message": "Please import from '@ethersproject/module' directly to support tree-shaking." } ] + }, + { + "paths": [ + { + "name": "mnemonist", + "message": "Please import from 'mnemonist/module' directly to support tree-shaking." + } + ] } ] } diff --git a/src/routers/alpha-router/functions/best-swap-route.ts b/src/routers/alpha-router/functions/best-swap-route.ts index bcfa8e4c7..544ef02cd 100644 --- a/src/routers/alpha-router/functions/best-swap-route.ts +++ b/src/routers/alpha-router/functions/best-swap-route.ts @@ -3,7 +3,8 @@ import { Protocol } from '@uniswap/router-sdk'; import { TradeType } from '@uniswap/sdk-core'; import JSBI from 'jsbi'; import _ from 'lodash'; -import { FixedReverseHeap, Queue } from 'mnemonist'; +import FixedReverseHeap from 'mnemonist/fixed-reverse-heap'; +import Queue from 'mnemonist/queue'; import { ChainId, HAS_L1_FEE } from '../../../util'; import { CurrencyAmount } from '../../../util/amounts'; import { log } from '../../../util/log';