Skip to content

Commit 021c531

Browse files
committed
fix(plugin-css): Fix a bug where zero value for transforms weren't working properly
1 parent ebc9bb7 commit 021c531

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/large-rules-stay.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@plextv/react-lightning-plugin-css-transform": patch
3+
---
4+
5+
fix(plugin-css): Fix a bug where zero value for transforms weren't working properly

packages/plugin-css-transform/src/utils/parseTransform.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function parseTransform(
2828
>;
2929

3030
for (const t of Object.keys(originalTranform)) {
31-
if (!originalTranform[t]) {
31+
if (originalTranform[t] == null) {
3232
continue;
3333
}
3434

0 commit comments

Comments
 (0)