Skip to content

Commit

Permalink
🐛 Fix modules' extensions being parsed at the exporter if they have u…
Browse files Browse the repository at this point in the history
…ndefined or unset (equal to -1) secondary keys
  • Loading branch information
CosmoMyzrailGorynych committed Aug 11, 2020
1 parent 0532e76 commit 21d29c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/node_requires/exporter/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ const getUnwrappedExtends = function getUnwrappedExtends(exts) {
}
const postfix = split.pop();
const key = split.join('@@');
if ((postfix === 'type' || postfix === 'texture') &&
(exts[i] === void 0 || exts[i] === -1)) {
// Skip unset values
continue;
}
if (postfix === 'type') {
try {
out[key] = getTypeFromId(exts[i]).name;
Expand Down

0 comments on commit 21d29c9

Please sign in to comment.