Skip to content

Commit cdad52d

Browse files
authored
Fix fn serialization with older versions of integration (#354)
1 parent 0064a19 commit cdad52d

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.changeset/strange-cooks-trade.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@vanilla-extract/css': patch
3+
---
4+
5+
Fix function serialization with older versions of the `@vanilla-extract/integration` package

packages/css/src/functionSerializer.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ export function addFunctionSerializer<Target extends object>(
1616
target: Target,
1717
recipe: SerializerConfig,
1818
) {
19-
Object.defineProperty(target, '__function_serializer__', {
19+
// TODO: Update to "__function_serializer__" in future.
20+
// __recipe__ is the backwards compatible name
21+
Object.defineProperty(target, '__recipe__', {
2022
value: recipe,
2123
writable: false,
2224
});

0 commit comments

Comments
 (0)