We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d62097 commit 79640ddCopy full SHA for 79640dd
1 file changed
src/packager/compressor.js
@@ -188,7 +188,7 @@ export const optiCompress = (code, options) => {
188
code = code.replace(oldCheckMark, optimizedCheckMark).replace(twExtrasIcon, '');
189
190
const imageURIs = code.match(/data:image\/[a-zA-Z0-9.+-]+;base64,[A-Za-z0-9+/=]+/g);
191
- for (var i = 1; i < imageURIs.length; i++) {
+ if (imageURIs) for (var i = 1; i < imageURIs.length; i++) {
192
if ((i === 15 || i === 16) && !builtIns.includes('fr3d')) code = code.replace(imageURIs[i], '');
193
else if (i < 15 || i > 16) code = code.replace(imageURIs[i], '');
194
}
0 commit comments