diff --git a/package.json b/package.json index a58efafa2..36ba706f0 100644 --- a/package.json +++ b/package.json @@ -52,7 +52,7 @@ "emoji-regex": "^10.2.1", "indent-string": "^5.0.0", "is-ci": "^3.0.1", - "lodash-es": "^4.17.21", + "lodash": "^4.17.21", "patch-console": "^2.0.0", "react-reconciler": "^0.29.0", "scheduler": "^0.23.0", @@ -71,7 +71,7 @@ "@sindresorhus/tsconfig": "3.0.1", "@types/benchmark": "^2.1.2", "@types/is-ci": "^2.0.0", - "@types/lodash-es": "^4.17.6", + "@types/lodash": "^4.14.191", "@types/ms": "^0.7.31", "@types/node": "*", "@types/react": "^18.0.0", diff --git a/src/ink.tsx b/src/ink.tsx index 44dfdea71..92efde0c5 100644 --- a/src/ink.tsx +++ b/src/ink.tsx @@ -1,6 +1,7 @@ import process from 'node:process'; import React, {type ReactNode} from 'react'; -import {throttle, type DebouncedFunc} from 'lodash-es'; +import throttle from 'lodash/throttle.js'; +import {type DebouncedFunc} from 'lodash'; import ansiEscapes from 'ansi-escapes'; import originalIsCi from 'is-ci'; import autoBind from 'auto-bind';