Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sprinkles: Improve error experience (#77)
Co-authored-by: Mark Dalgleish <mark.john.dalgleish@gmail.com>
- Loading branch information
1 parent
3360bdf
commit 63c01ad
Showing
3 changed files
with
288 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
'@vanilla-extract/sprinkles': patch | ||
--- | ||
|
||
Improve runtime errors | ||
|
||
Sprinkles will now validate your `atoms` calls at runtime for a better developer experience. The validation code should be stripped from production bundles via a `process.env.NODE_ENV` check. | ||
|
||
Example Error | ||
|
||
```bash | ||
SprinklesError: "paddingTop" has no value "xlarge". Possible values are "small", "medium", "large" | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters