diff options
author | 2021-07-28 18:08:27 +0000 | |
---|---|---|
committer | 2021-07-28 18:08:27 +0000 | |
commit | 189098b6e569758d67d221162c76aa2c032e1a38 (patch) | |
tree | e2d6966331921e11a8ca655c5143aca000a64499 | |
parent | 23b0d2d345312eb072998d043fe84a5addbd6c04 (diff) | |
download | astro-189098b6e569758d67d221162c76aa2c032e1a38.tar.gz astro-189098b6e569758d67d221162c76aa2c032e1a38.tar.zst astro-189098b6e569758d67d221162c76aa2c032e1a38.zip |
[ci] yarn format
-rw-r--r-- | packages/astro/src/build.ts | 4 | ||||
-rw-r--r-- | packages/astro/test/astro-assets.test.js | 2 |
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(); |