[ci] yarn format
This commit is contained in:
parent
20d0cce681
commit
babed02876
2 changed files with 16 additions and 16 deletions
|
@ -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;
|
||||
|
|
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in a new issue