Skip to content

Commit

Permalink
fix: tree-shake mnemonist (#83)
Browse files Browse the repository at this point in the history
* fix: tree-shake mnemonist

* Fix code style issues with Prettier

Co-authored-by: Lint Action <lint-action@samuelmeuli.com>
  • Loading branch information
zzmp and lint-action authored Mar 28, 2022
1 parent 743f937 commit dc5ce16
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
]
}
]
}
Expand Down
3 changes: 2 additions & 1 deletion src/routers/alpha-router/functions/best-swap-route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit dc5ce16

Please sign in to comment.