Skip to content

Commit

Permalink
Merge branch 'master' into dts-bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcompiles authored Oct 17, 2022
2 parents 62cd4ab + 31c5ff5 commit 5a13938
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/lovely-lies-hide.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@vanilla-extract/integration': patch
---

Use correct async Babel transform method in integration transform
2 changes: 1 addition & 1 deletion packages/integration/src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const transform = async ({
let code = source;

if (identOption === 'debug') {
const result = await babel.transform(source, {
const result = await babel.transformAsync(source, {
filename: filePath,
cwd: rootPath,
plugins: [vanillaBabelPlugin, typescriptSyntax],
Expand Down
6 changes: 3 additions & 3 deletions site/docs/packages/sprinkles.md
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ This function should be created and exported from your `sprinkles.css.ts` file u
> 💡 You can name the generated function whatever you like, typically based on the name of your conditions.
```ts
// app.ts
// sprinkles.css.ts
import {
defineProperties,
createSprinkles,
Expand Down Expand Up @@ -671,13 +671,13 @@ normalizeResponsiveValue('block');
// -> { mobile: 'block' }

normalizeResponsiveValue(['none', null, 'block']);
// -> { mobile: 'block', desktop: 'block' }
// -> { mobile: 'none', desktop: 'block' }

normalizeResponsiveValue({
mobile: 'none',
desktop: 'block'
});
// -> { mobile: 'block', desktop: 'block' }
// -> { mobile: 'none', desktop: 'block' }
```

## ConditionalValue
Expand Down

0 comments on commit 5a13938

Please sign in to comment.