mirror of
https://github.com/withastro/astro.git
synced 2024-12-30 22:03:56 -05:00
[ci] format
This commit is contained in:
parent
69d54b4bf2
commit
d052428e38
3 changed files with 3 additions and 6 deletions
|
@ -252,10 +252,7 @@ export function getPageData(
|
|||
* @param internals Build Internals with all the pages
|
||||
* @param component path to the component, used to identify related pages
|
||||
*/
|
||||
function getPagesDatasByComponent(
|
||||
internals: BuildInternals,
|
||||
component: string
|
||||
): PageBuildData[] {
|
||||
function getPagesDatasByComponent(internals: BuildInternals, component: string): PageBuildData[] {
|
||||
const pageDatas: PageBuildData[] = [];
|
||||
internals.pagesByKeys.forEach((pageData) => {
|
||||
if (component === pageData.component) pageDatas.push(pageData);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import type { BuildOptions, Plugin as VitePlugin, Rollup } from 'vite';
|
||||
import type { BuildOptions, Rollup, Plugin as VitePlugin } from 'vite';
|
||||
import type { AstroSettings } from '../../../@types/astro.js';
|
||||
import { viteID } from '../../util.js';
|
||||
import type { BuildInternals } from '../internal.js';
|
||||
|
|
|
@ -2,9 +2,9 @@ import assert from 'node:assert/strict';
|
|||
import { basename } from 'node:path';
|
||||
import { Writable } from 'node:stream';
|
||||
import { after, before, describe, it } from 'node:test';
|
||||
import { removeDir } from '@astrojs/internal-helpers/fs';
|
||||
import * as cheerio from 'cheerio';
|
||||
import parseSrcset from 'parse-srcset';
|
||||
import { removeDir } from '@astrojs/internal-helpers/fs';
|
||||
import { Logger } from '../dist/core/logger/core.js';
|
||||
import testAdapter from './test-adapter.js';
|
||||
import { testImageService } from './test-image-service.js';
|
||||
|
|
Loading…
Reference in a new issue