[ci] format

This commit is contained in:
matthewp 2023-05-22 17:52:03 +00:00 committed by fredkbot
parent f558a9e205
commit 6533cbea87
3 changed files with 17 additions and 6 deletions

View file

@ -8,6 +8,11 @@ export const LINKS_PLACEHOLDER = '@@ASTRO-LINKS@@';
export const STYLES_PLACEHOLDER = '@@ASTRO-STYLES@@';
export const SCRIPTS_PLACEHOLDER = '@@ASTRO-SCRIPTS@@';
export const CONTENT_FLAGS = [CONTENT_FLAG, CONTENT_RENDER_FLAG, DATA_FLAG, PROPAGATED_ASSET_FLAG] as const;
export const CONTENT_FLAGS = [
CONTENT_FLAG,
CONTENT_RENDER_FLAG,
DATA_FLAG,
PROPAGATED_ASSET_FLAG,
] as const;
export const CONTENT_TYPES_FILE = 'types.d.ts';

View file

@ -60,7 +60,9 @@ export async function* crawlGraph(
if (entryIsStyle && !isCSSRequest(importedModulePathname)) {
continue;
}
const isFileTypeNeedingSSR = fileExtensionsToSSR.has(npath.extname(importedModulePathname));
const isFileTypeNeedingSSR = fileExtensionsToSSR.has(
npath.extname(importedModulePathname)
);
if (
isFileTypeNeedingSSR &&
// Should not SSR a module with ?astroPropagatedAssets

View file

@ -48,10 +48,14 @@ export const ComponentNode = createComponent({
links = '',
scripts = '';
if (Array.isArray(treeNode.collectedStyles)) {
styles = treeNode.collectedStyles.map((style: any) => renderUniqueStylesheet({
type: 'inline',
content: style,
})).join('');
styles = treeNode.collectedStyles
.map((style: any) =>
renderUniqueStylesheet({
type: 'inline',
content: style,
})
)
.join('');
}
if (Array.isArray(treeNode.collectedLinks)) {
links = treeNode.collectedLinks