Remove lodash/has (#13023)

This commit is contained in:
Justin Ridgewell 2021-03-19 10:50:52 -04:00 committed by GitHub
parent 020c88e74b
commit 78cf07767a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 3 additions and 8 deletions

View File

@ -22,10 +22,6 @@ declare module "json5" {
};
}
declare module "lodash/defaults" {
declare export default <T: Object>(T, Object) => T;
}
declare module "lodash/clone" {
declare export default <T>(obj: T) => T;
}

View File

@ -15,7 +15,6 @@
"main": "lib/index.js",
"dependencies": {
"@babel/helper-function-name": "workspace:^7.12.13",
"@babel/types": "workspace:^7.12.13",
"lodash": "^4.17.19"
"@babel/types": "workspace:^7.12.13"
}
}

View File

@ -1,5 +1,4 @@
import nameFunction from "@babel/helper-function-name";
import has from "lodash/has";
import * as t from "@babel/types";
function toKind(node: Object) {
@ -12,6 +11,8 @@ function toKind(node: Object) {
return "value";
}
const has = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
export function push(
mutatorMap: Object,
node: Object,

View File

@ -490,7 +490,6 @@ __metadata:
dependencies:
"@babel/helper-function-name": "workspace:^7.12.13"
"@babel/types": "workspace:^7.12.13"
lodash: ^4.17.19
languageName: unknown
linkType: soft