mirror of
https://github.com/withastro/astro.git
synced 2025-01-22 18:41:55 -05:00
[ci] format
This commit is contained in:
parent
8329d17968
commit
1c64ae304d
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ interface ImportedStyle {
|
|||
content: string;
|
||||
}
|
||||
|
||||
const inlineQueryRE = /(?:\?|&)inline(?:$|&)/
|
||||
const inlineQueryRE = /(?:\?|&)inline(?:$|&)/;
|
||||
|
||||
/** Given a filePath URL, crawl Vite’s 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('?')) {
|
||||
|
|
Loading…
Reference in a new issue