summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--packages/astro/src/build.ts4
-rw-r--r--packages/astro/test/astro-assets.test.js2
2 files changed, 3 insertions, 3 deletions
diff --git a/packages/astro/src/build.ts b/packages/astro/src/build.ts
index 4fd22f1bf..28e164f78 100644
--- a/packages/astro/src/build.ts
+++ b/packages/astro/src/build.ts
@@ -301,8 +301,8 @@ export function findDeps(html: string, { astroConfig, srcPath }: { astroConfig:
$('img[srcset]').each((_i, el) => {
const srcset = $(el).attr('srcset') || '';
const sources = srcset.split(',');
- const srces = sources.map(s => s.trim().split(' ')[0]);
- for(const src of srces) {
+ const srces = sources.map((s) => s.trim().split(' ')[0]);
+ for (const src of srces) {
pageDeps.images.add(getDistPath(src, { astroConfig, srcPath }));
}
});
diff --git a/packages/astro/test/astro-assets.test.js b/packages/astro/test/astro-assets.test.js
index c82d34aa6..6299b8653 100644
--- a/packages/astro/test/astro-assets.test.js
+++ b/packages/astro/test/astro-assets.test.js
@@ -22,4 +22,4 @@ Assets('srcset is copied in the build', async ({ build, readFile }) => {
assert.ok(threeX, 'build the 3x image');
});
-Assets.run(); \ No newline at end of file
+Assets.run();