fix: 🐛 order of operations when flattening formats array
Prematurely flattening the formats array results in pixel density going above 3x
This commit is contained in:
parent
9dbd68c048
commit
c94722952c
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ export default async function (eleventyConfig) {
|
|||
|
||||
const getSets = ({ url, sourceType }, i) => `url(${url}) type('${sourceType}') ${i + 1}x`;
|
||||
|
||||
return Object.values(imgset).flat().map(getSets);
|
||||
return Object.values(imgset).map(format => format.map(getSets)).flat();
|
||||
});
|
||||
|
||||
eleventyConfig.addFilter('toDateObj', (dateString) => new Date(dateString));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue