Skip to content

Commit 43ea161

Browse files
committed
Migrate remaining files to use es-toolkit
1 parent c1e4d02 commit 43ea161

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/commons/sideContent/SideContentHelper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import * as bpcore from '@blueprintjs/core';
22
import { TabId } from '@blueprintjs/core';
33
import * as bpicons from '@blueprintjs/icons';
4+
import compat from 'es-toolkit/compat';
45
import * as jsslang from 'js-slang';
56
import * as jsslangDist from 'js-slang/dist';
6-
import lodash from 'lodash';
77
import phaser from 'phaser';
88
import React, { useCallback } from 'react';
99
import JSXRuntime from 'react/jsx-runtime';
@@ -35,7 +35,7 @@ const requireProvider = (x: string) => {
3535
'@blueprintjs/icons': bpicons,
3636
'js-slang': jsslang,
3737
'js-slang/dist': jsslangDist,
38-
lodash,
38+
lodash: compat,
3939
phaser
4040
};
4141

src/commons/utils/MemoizeHelper.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as _ from 'lodash';
1+
import { isEqual } from 'es-toolkit';
22

33
/**
44
* Performs a deep comparison between the previous & next props state
@@ -9,4 +9,4 @@ import * as _ from 'lodash';
99
* @param nextProps The next state of the props passed into a component
1010
*/
1111
export const propsAreEqual = <T>(prevProps: T, nextProps: T): boolean =>
12-
_.isEqual(prevProps, nextProps);
12+
isEqual(prevProps, nextProps);

0 commit comments

Comments
 (0)