You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/babel-plugin/CHANGELOG.md
+32Lines changed: 32 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,37 @@
1
1
# @compiled/babel-plugin
2
2
3
+
## 0.35.0
4
+
5
+
### Minor Changes
6
+
7
+
- 34e5339a: Fix `@compiled/babel-plugin` to not require `cssMap()` to be called prior to use.
8
+
9
+
Example, this failed before for no reason other than the fact that our `state.cssMap` was generated _after_`JSXElement` and `JSXOpeningElement` were ran.
10
+
11
+
```tsx
12
+
import { cssMap } from'@compiled/react';
13
+
exportdefault () => <divcss={styles.root} />;
14
+
const styles =cssMap({ root: { padding: 8 } });
15
+
```
16
+
17
+
- 34e5339a: Throw an error when compiling a `cssMap` object where we expect a `css` or nested `cssMap` object.
18
+
19
+
Example of code that silently fails today, using `styles` directly:
20
+
21
+
```tsx
22
+
import { cssMap } from'@compiled/react';
23
+
const styles =cssMap({ root: { padding: 8 } });
24
+
exportdefault () => <divcss={styles} />;
25
+
```
26
+
27
+
What we expect to see instead, using `styles.root` instead:
0 commit comments