[ci] yarn format

This commit is contained in:
matthewp 2022-01-12 17:04:04 +00:00 committed by GitHub Actions
parent 20d0cce681
commit babed02876
2 changed files with 16 additions and 16 deletions

View file

@ -13,7 +13,11 @@ const ASTRO_STYLE_PREFIX = '@astro-inline-style';
const ASTRO_PAGE_STYLE_PREFIX = '@astro-page-all-styles';
const cssRe = new RegExp(`\\.(${Array.from(STYLE_EXTENSIONS).map(s => s.slice(1)).join('|')})($|\\?)`);
const cssRe = new RegExp(
`\\.(${Array.from(STYLE_EXTENSIONS)
.map((s) => s.slice(1))
.join('|')})($|\\?)`
);
const isCSSRequest = (request: string): boolean => cssRe.test(request);
export function getAstroPageStyleId(pathname: string) {
@ -110,8 +114,6 @@ export function rollupPluginAstroBuildCSS(options: PluginOptions): VitePlugin {
return null;
},
async renderChunk(_code, chunk) {
let chunkCSS = '';
let isPureCSS = true;

View file

@ -12,9 +12,7 @@ describe('Static build', () => {
before(async () => {
fixture = await loadFixture({
projectRoot: './fixtures/static-build/',
renderers: [
'@astrojs/renderer-preact'
],
renderers: ['@astrojs/renderer-preact'],
buildOptions: {
experimentalStaticBuild: true,
},
@ -46,7 +44,7 @@ describe('Static build', () => {
}
return false;
}
};
}
describe('Shared CSS', () => {