Skip to content
This repository has been archived by the owner on Oct 1, 2024. It is now read-only.

Commit

Permalink
Fixed misspelled function name
Browse files Browse the repository at this point in the history
  • Loading branch information
elektronikworkshop authored and adiazulay committed Jan 19, 2021
1 parent d6459d0 commit ddb804f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function getEntry() {
fs.copySync(p, 'out/node_modules/' + mod);
}

const list = getDependeciesFromNpm(mod);
const list = getDependenciesFromNpm(mod);
const moduleList = list.filter((value, index, self) => {
return self.indexOf(value) === index && unbundledModule.indexOf(value) === -1 && !/^@types\//.test(value);
});
Expand All @@ -31,15 +31,15 @@ function getEntry() {
return entry;
}

function getDependeciesFromNpm(mod) {
function getDependenciesFromNpm(mod) {
let list = [];
const deps = mod.dependencies;
if (!deps) {
return list;
}
for (const m of Object.keys(deps)) {
list.push(m);
list = list.concat(getDependeciesFromNpm(deps[m]));
list = list.concat(getDependenciesFromNpm(deps[m]));
}
return list;
}
Expand Down

0 comments on commit ddb804f

Please sign in to comment.