Skip to content

Commit

Permalink
Merge pull request #2 from vmitchell/main
Browse files Browse the repository at this point in the history
Optimize lodash imports for tree shaking
  • Loading branch information
kolodny authored Feb 15, 2024
2 parents fc1759c + 7e33512 commit 35e4036
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/artifacts.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import _ from 'lodash';
import { uniqBy } from 'lodash';
import { safeRequire } from './safe-require';
import { state } from './state';

Expand Down Expand Up @@ -54,7 +54,7 @@ export const collectArtifacts = async () => {
const grouped: Grouped = {};
for (const [test, artifacts] of Object.entries(byTest)) {
const group: Group = (grouped[test] = {});
const unique = _.uniqBy(artifacts, 'path');
const unique = uniqBy(artifacts, 'path');
for (const artifact of unique) {
if (!group[artifact.type]) group[artifact.type] = [];
group[artifact.type]!.push(artifact.path);
Expand Down

0 comments on commit 35e4036

Please sign in to comment.