We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d5fe8e5 commit 1f8bfe4Copy full SHA for 1f8bfe4
packages/vite-plugin-svelte/src/utils/compile.js
@@ -86,8 +86,7 @@ export function createCompileSvelte() {
86
preprocessors.push({
87
name: 'test-has-global-style',
88
style({ content }) {
89
- hasUnscopedGlobalCss =
90
- content?.length > 0 && /(?:^|,)\s*(?::global[\s{(]|@keyframes -global-)/m.test(content);
+ hasUnscopedGlobalCss = /(?:^|,)\s*(?::global[\s{(]|@keyframes -global-)/m.test(content);
91
}
92
});
93
0 commit comments