Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy authored and astrobot-houston committed Sep 10, 2024
1 parent 8329d17 commit 1c64ae3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/astro/src/vite-plugin-astro-server/css.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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('?')) {
Expand Down

0 comments on commit 1c64ae3

Please sign in to comment.