Skip to content

Commit

Permalink
fix(utils): check validity of bundledDependencies before iteration (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmeirlevy committed Dec 13, 2022
1 parent 6fcba3d commit 2517ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/npm-install/npm-install.js
Expand Up @@ -132,7 +132,7 @@ function transformManifest(pkg, dependencies) {

["bundledDependencies", "bundleDependencies"].forEach((depType) => {
const collection = json[depType];
if (collection) {
if (Array.isArray(collection)) {
const newCollection = [];
for (const depName of collection) {
if (depMap.has(depName)) {
Expand Down

0 comments on commit 2517ffb

Please sign in to comment.