[ci] format

This commit is contained in:
matthewp 2022-07-25 16:16:22 +00:00 committed by fredkbot
parent 7e5ac1f45c
commit f9e8e72a48
4 changed files with 9 additions and 12 deletions

View file

@ -1,6 +1,5 @@
import type { PluginContext } from 'rollup';
import type { Plugin as VitePlugin } from 'vite';
import type { AstroConfig } from '../../@types/astro';
import type { BuildInternals } from '../../core/build/internal.js';
import type { PluginMetadata as AstroPluginMetadata } from '../../vite-plugin-astro/types';
@ -9,9 +8,7 @@ import { resolveClientDevPath } from '../../core/render/dev/resolve.js';
import { getTopLevelPages } from './graph.js';
import { getPageDataByViteID, trackClientOnlyPageDatas } from './internal.js';
export function vitePluginAnalyzer(
internals: BuildInternals
): VitePlugin {
export function vitePluginAnalyzer(internals: BuildInternals): VitePlugin {
function hoistedScriptScanner() {
const uniqueHoistedIds = new Map<string, string>();
const pageScripts = new Map<string, Set<string>>();

View file

@ -1,4 +1,4 @@
import { Plugin as VitePlugin, ConfigEnv } from 'vite';
import { ConfigEnv, Plugin as VitePlugin } from 'vite';
import { AstroConfig, InjectedScriptStage } from '../@types/astro.js';
// NOTE: We can't use the virtual "\0" ID convention because we need to
@ -57,6 +57,6 @@ export default function astroScriptsPlugin({ config }: { config: AstroConfig }):
name: BEFORE_HYDRATION_SCRIPT_ID,
});
}
}
},
};
}