diff options
author | 2024-09-10 03:12:50 +0000 | |
---|---|---|
committer | 2024-09-10 03:12:50 +0000 | |
commit | 1c64ae304d3c008a776e98e48fd3ece8be7b1fb5 (patch) | |
tree | 079b10c54476e7a4f458b5bc3fa27e96f9de94c1 | |
parent | 8329d17968ada1ac966121da607e3351af924af9 (diff) | |
download | astro-1c64ae304d3c008a776e98e48fd3ece8be7b1fb5.tar.gz astro-1c64ae304d3c008a776e98e48fd3ece8be7b1fb5.tar.zst astro-1c64ae304d3c008a776e98e48fd3ece8be7b1fb5.zip |
[ci] format
-rw-r--r-- | packages/astro/src/vite-plugin-astro-server/css.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/astro/src/vite-plugin-astro-server/css.ts b/packages/astro/src/vite-plugin-astro-server/css.ts index 9a4133f3d..af147048a 100644 --- a/packages/astro/src/vite-plugin-astro-server/css.ts +++ b/packages/astro/src/vite-plugin-astro-server/css.ts @@ -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('?')) { |