From 3d300c718bbec111040fed1510cd4d4ae098627b Mon Sep 17 00:00:00 2001 From: Andreas Lind Date: Mon, 22 Jun 2020 20:52:02 +0200 Subject: [PATCH] Remove lodash.groupby now that we have all of lodash --- lib/subfont.js | 4 ++-- package.json | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/subfont.js b/lib/subfont.js index 17e59e39..56ed4b45 100644 --- a/lib/subfont.js +++ b/lib/subfont.js @@ -1,6 +1,6 @@ const AssetGraph = require('assetgraph'); const prettyBytes = require('pretty-bytes'); -const groupBy = require('lodash.groupby'); +const _ = require('lodash'); const urlTools = require('urltools'); const util = require('util'); const subsetFonts = require('./subsetFonts'); @@ -269,7 +269,7 @@ module.exports = async function subfont( maxOriginalCodePoints ); } - const fontUsagesByFontFamily = groupBy( + const fontUsagesByFontFamily = _.groupBy( fontUsages, (fontUsage) => fontUsage.props['font-family'] ); diff --git a/package.json b/package.json index 578a9db5..dbd5bd4b 100644 --- a/package.json +++ b/package.json @@ -58,7 +58,6 @@ "fontkit": "^1.8.0", "lines-and-columns": "^1.1.6", "lodash": "^4.17.15", - "lodash.groupby": "^4.6.0", "memoizesync": "^1.1.1", "postcss": "^7.0.32", "postcss-value-parser": "^4.0.2",