Skip to content

Commit

Permalink
Remove lodash/has (#13023)
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Mar 19, 2021
1 parent 020c88e commit 78cf077
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 8 deletions.
4 changes: 0 additions & 4 deletions lib/third-party-libs.js.flow
Expand Up @@ -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;
}
Expand Down
3 changes: 1 addition & 2 deletions packages/babel-helper-define-map/package.json
Expand Up @@ -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"
}
}
3 changes: 2 additions & 1 deletion packages/babel-helper-define-map/src/index.js
@@ -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) {
Expand All @@ -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,
Expand Down
1 change: 0 additions & 1 deletion yarn.lock
Expand Up @@ -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

Expand Down

0 comments on commit 78cf077

Please sign in to comment.