summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar 翠 / green <bluwy@users.noreply.github.com> 2024-09-10 03:12:50 +0000
committerGravatar astrobot-houston <fred+astrobot@astro.build> 2024-09-10 03:12:50 +0000
commit1c64ae304d3c008a776e98e48fd3ece8be7b1fb5 (patch)
tree079b10c54476e7a4f458b5bc3fa27e96f9de94c1
parent8329d17968ada1ac966121da607e3351af924af9 (diff)
downloadastro-1c64ae304d3c008a776e98e48fd3ece8be7b1fb5.tar.gz
astro-1c64ae304d3c008a776e98e48fd3ece8be7b1fb5.tar.zst
astro-1c64ae304d3c008a776e98e48fd3ece8be7b1fb5.zip
[ci] format
-rw-r--r--packages/astro/src/vite-plugin-astro-server/css.ts4
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('?')) {