diff --git a/packages/astro/src/compiler/transform/postcss-scoped-styles/index.ts b/packages/astro/src/compiler/transform/postcss-scoped-styles/index.ts index a10eba77a..7ee20fb6d 100644 --- a/packages/astro/src/compiler/transform/postcss-scoped-styles/index.ts +++ b/packages/astro/src/compiler/transform/postcss-scoped-styles/index.ts @@ -100,7 +100,7 @@ export default function astroScopedStyles(options: AstroScopedOptions): Plugin { return { postcssPlugin: '@astrojs/postcss-scoped-styles', Rule(rule) { - if(!rulesScopedCache.has(rule)) { + if (!rulesScopedCache.has(rule)) { rule.selector = scopeRule(rule.selector, options.className); rulesScopedCache.add(rule); }