Skip to content

Commit f79303f

Browse files
committed
fix(build): fix build
1 parent 90aa20f commit f79303f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/transform/css.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { parse } from 'json5'
1+
// eslint-disable-next-line import/default
2+
import json5 from 'json5'
23
import { stringify } from '@stitches/stringify'
34
import { referencesRegex } from '../formats/references'
45
import { $tokens } from '../index'
@@ -24,7 +25,7 @@ export const resolveStyleTs = (code: string = '', variantsProps = {}) => {
2425
cssContentRegex,
2526
(...cssFunctionMatch) => {
2627
// Parse css({}) content
27-
const declaration = parse(cssFunctionMatch[1])
28+
const declaration = json5.parse(cssFunctionMatch[1])
2829

2930
const style = stringify(
3031
declaration,

0 commit comments

Comments
 (0)