diff --git a/.babelrc b/.babelrc index 599248901c9430209cf2904beb1b71416ef5dc1b..8d6b3093032bdf5b6939222a9d808f8c5144ddf1 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 cc68a19f4bde1dd025adbefeda270c8f4158d552..ff6b5ae9ca8efbfeb15c0dc0d79577d8729e5ebe 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",