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 module "lodash/clone" {
|
||||||
declare export default <T>(obj: T) => T;
|
declare export default <T>(obj: T) => T;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -15,7 +15,6 @@
|
|||||||
"main": "lib/index.js",
|
"main": "lib/index.js",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-function-name": "workspace:^7.12.13",
|
"@babel/helper-function-name": "workspace:^7.12.13",
|
||||||
"@babel/types": "workspace:^7.12.13",
|
"@babel/types": "workspace:^7.12.13"
|
||||||
"lodash": "^4.17.19"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
import nameFunction from "@babel/helper-function-name";
|
import nameFunction from "@babel/helper-function-name";
|
||||||
import has from "lodash/has";
|
|
||||||
import * as t from "@babel/types";
|
import * as t from "@babel/types";
|
||||||
|
|
||||||
function toKind(node: Object) {
|
function toKind(node: Object) {
|
||||||
@ -12,6 +11,8 @@ function toKind(node: Object) {
|
|||||||
return "value";
|
return "value";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const has = Function.prototype.call.bind(Object.prototype.hasOwnProperty);
|
||||||
|
|
||||||
export function push(
|
export function push(
|
||||||
mutatorMap: Object,
|
mutatorMap: Object,
|
||||||
node: Object,
|
node: Object,
|
||||||
|
|||||||
@ -490,7 +490,6 @@ __metadata:
|
|||||||
dependencies:
|
dependencies:
|
||||||
"@babel/helper-function-name": "workspace:^7.12.13"
|
"@babel/helper-function-name": "workspace:^7.12.13"
|
||||||
"@babel/types": "workspace:^7.12.13"
|
"@babel/types": "workspace:^7.12.13"
|
||||||
lodash: ^4.17.19
|
|
||||||
languageName: unknown
|
languageName: unknown
|
||||||
linkType: soft
|
linkType: soft
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user