We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90aa20f commit f79303fCopy full SHA for f79303f
src/transform/css.ts
@@ -1,4 +1,5 @@
1
-import { parse } from 'json5'
+// eslint-disable-next-line import/default
2
+import json5 from 'json5'
3
import { stringify } from '@stitches/stringify'
4
import { referencesRegex } from '../formats/references'
5
import { $tokens } from '../index'
@@ -24,7 +25,7 @@ export const resolveStyleTs = (code: string = '', variantsProps = {}) => {
24
25
cssContentRegex,
26
(...cssFunctionMatch) => {
27
// Parse css({}) content
- const declaration = parse(cssFunctionMatch[1])
28
+ const declaration = json5.parse(cssFunctionMatch[1])
29
30
const style = stringify(
31
declaration,
0 commit comments