From c9a49a9b7059e7031aa6aeeffcda981121ce1ccb Mon Sep 17 00:00:00 2001 From: Jack Reed <phillipjreed@gmail.com> Date: Fri, 21 Jun 2019 07:01:35 -0600 Subject: [PATCH] Removes babel-plugin-lodash in favor of babel-plugin-import --- .babelrc | 10 ++++++---- package.json | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.babelrc b/.babelrc index 599248901..8d6b30930 100644 --- a/.babelrc +++ b/.babelrc @@ -3,8 +3,10 @@ "plugins": [ "@babel/plugin-transform-runtime", "transform-react-remove-prop-types", - ["lodash", { "id": [ - "lodash", "react-placeholder", - ]} - ]], + ["import", { + "libraryName": "lodash", + "libraryDirectory": "", + "camel2DashComponentName": false, + }, "lodash"], + ] } diff --git a/package.json b/package.json index cc68a19f4..ff6b5ae9c 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "babel-eslint": "10.0.2", "babel-jest": "^24.8.0", "babel-loader": "^8.0.6", - "babel-plugin-lodash": "^3.3.4", + "babel-plugin-import": "^1.12.0", "babel-plugin-transform-react-remove-prop-types": "^0.4.24", "bundlewatch": "^0.2.5", "chalk": "^2.4.2", -- GitLab