Skip to content

Commit

Permalink
Fix fn serialization with older versions of integration (#354)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcompiles authored Sep 13, 2021
1 parent 0064a19 commit cdad52d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/strange-cooks-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@vanilla-extract/css': patch
---

Fix function serialization with older versions of the `@vanilla-extract/integration` package
4 changes: 3 additions & 1 deletion packages/css/src/functionSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export function addFunctionSerializer<Target extends object>(
target: Target,
recipe: SerializerConfig,
) {
Object.defineProperty(target, '__function_serializer__', {
// TODO: Update to "__function_serializer__" in future.
// __recipe__ is the backwards compatible name
Object.defineProperty(target, '__recipe__', {
value: recipe,
writable: false,
});
Expand Down

0 comments on commit cdad52d

Please sign in to comment.