Skip to content

Commit 1f8bfe4

Browse files
committed
chore: remove extraneous check
1 parent d5fe8e5 commit 1f8bfe4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Diff for: packages/vite-plugin-svelte/src/utils/compile.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ export function createCompileSvelte() {
8686
preprocessors.push({
8787
name: 'test-has-global-style',
8888
style({ content }) {
89-
hasUnscopedGlobalCss =
90-
content?.length > 0 && /(?:^|,)\s*(?::global[\s{(]|@keyframes -global-)/m.test(content);
89+
hasUnscopedGlobalCss = /(?:^|,)\s*(?::global[\s{(]|@keyframes -global-)/m.test(content);
9190
}
9291
});
9392
}

0 commit comments

Comments
 (0)