Skip to content

Commit 4418e7d

Browse files
committed
refactor
1 parent 8bafa0d commit 4418e7d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/index.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,12 @@ export default function UserscriptPlugin(
9595
(file as unknown as { modules: string[] }).modules
9696
)
9797

98-
const cssModules = modules.filter((module) => regexpStyles.test(module))
98+
const styleModules = modules.filter((module) =>
99+
regexpStyles.test(module)
100+
)
99101

100-
if (cssModules.length > 0) {
101-
css.merge(cssModules)
102+
if (styleModules.length) {
103+
css.merge(styleModules)
102104
}
103105
}
104106
},

0 commit comments

Comments
 (0)