We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 48bd970 commit b4c4e03Copy full SHA for b4c4e03
src/index.js
@@ -250,12 +250,15 @@ const forms = plugin.withOptions(function (options = { strategy: 'base' }) {
250
]
251
252
addBase(
253
- rules.map((rule) => {
254
- if (rule[strategy] === null) {
255
- return null
256
- }
257
- return { [rule[strategy]]: rule.styles }
258
- })
+ rules
+ .map((rule) => {
+ if (rule[strategy] === null) {
+ return null
+ }
+
259
+ return { [rule[strategy]]: rule.styles }
260
+ })
261
+ .filter(Boolean)
262
)
263
}
264
})
0 commit comments