[ci] format

This commit is contained in:
翠 / green 2024-09-10 03:12:50 +00:00 committed by astrobot-houston
parent 8329d17968
commit 1c64ae304d

View file

@ -9,7 +9,7 @@ interface ImportedStyle {
content: string;
}
const inlineQueryRE = /(?:\?|&)inline(?:$|&)/
const inlineQueryRE = /(?:\?|&)inline(?:$|&)/;
/** Given a filePath URL, crawl Vites module graph to find all style imports. */
export async function getStylesForURL(
@ -34,7 +34,7 @@ export async function getStylesForURL(
}
// Else try to load it
else {
let modId = importedModule.url
let modId = importedModule.url;
// Mark url with ?inline so Vite will return the CSS as plain string, even for CSS modules
if (!inlineQueryRE.test(importedModule.url)) {
if (importedModule.url.includes('?')) {