diff --git a/build.mjs b/build.mjs index c36deb6662..c74887acfd 100755 --- a/build.mjs +++ b/build.mjs @@ -86,12 +86,12 @@ function isImageLgxCompatible(image) { return false; } } else { - return true; + return image.hasOwnProperty('path'); } } function isImageLgxRequired(image) { - return typeof image !== 'string'; + return typeof image !== 'string' && image.hasOwnProperty('path'); } function shouldProcessImageArray(images) {