Skip to content

Commit

Permalink
fix(NA): comparasion on building allowed list of deps for production …
Browse files Browse the repository at this point in the history
…build (#128803) (#129251)

Co-authored-by: Kibana Machine <[email protected]>
(cherry picked from commit 2cdcb39)

Co-authored-by: Tiago Costa <[email protected]>
  • Loading branch information
kibanamachine and mistic authored Apr 1, 2022
1 parent 313e1b5 commit aa3e277
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dev/build/tasks/package_json/find_used_dependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export async function findUsedDependencies(listedPkgDependencies: any, baseDir:

const listedDependencies = Object.keys(listedPkgDependencies);
const filteredListedDependencies = listedDependencies.filter((entry) => {
return whiteListedModules.some((nonEntry) => entry.includes(nonEntry));
return whiteListedModules.some((nonEntry) => entry === nonEntry);
});

return filteredListedDependencies.reduce((foundUsedDeps: any, usedDep) => {
Expand Down

0 comments on commit aa3e277

Please sign in to comment.