We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 169aea1 commit 61f6559Copy full SHA for 61f6559
src/prettierCode.ts
@@ -15,5 +15,9 @@ export async function prettierCode(code: string) {
15
}
16
17
const { content } = styles[0]
18
- return code.replace(content, content.replace(/\n+/g, '\n'))
+ return code.replace(content, removeEmptyStyle(content.replace(/\n+/g, '\n')))
19
+}
20
+
21
+export function removeEmptyStyle(code: string) {
22
+ return code.replace(/([\w.#:[\]="'\-\s,>~]+)\{\s*\}/g, '')
23
0 commit comments