Remove lodash/has (#13023)
This commit is contained in:
parent
020c88e74b
commit
78cf07767a
@ -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;
|
||||
}
|
||||
|
||||
@ -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"
|
||||
}
|
||||
}
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user