diff --git a/packages/babel-plugin-minify-dead-code-elimination/package.json b/packages/babel-plugin-minify-dead-code-elimination/package.json index ed811d235..73489c0d5 100644 --- a/packages/babel-plugin-minify-dead-code-elimination/package.json +++ b/packages/babel-plugin-minify-dead-code-elimination/package.json @@ -13,7 +13,7 @@ ], "dependencies": { "babel-helper-remove-or-void": "^0.0.1", - "lodash": "^4.14.1" + "lodash.some": "^4.6.0" }, "devDependencies": {} } diff --git a/packages/babel-plugin-minify-dead-code-elimination/src/index.js b/packages/babel-plugin-minify-dead-code-elimination/src/index.js index 11308c034..acd9b8b63 100644 --- a/packages/babel-plugin-minify-dead-code-elimination/src/index.js +++ b/packages/babel-plugin-minify-dead-code-elimination/src/index.js @@ -1,6 +1,6 @@ "use strict"; -const { some } = require("lodash"); +const some = require("lodash.some"); module.exports = ({ types: t, traverse }) => { const removeOrVoid = require("babel-helper-remove-or-void")(t);