@@ -154,11 +154,7 @@ function element(node, context) {
154
154
shorthand : false ,
155
155
computed : false ,
156
156
key : { type : 'Identifier' , name : cssProp } ,
157
- value : {
158
- type : 'Literal' ,
159
- value : String ( value [ cssProp ] ) ,
160
- raw : JSON . stringify ( String ( value [ cssProp ] ) )
161
- } ,
157
+ value : { type : 'Literal' , value : String ( value [ cssProp ] ) } ,
162
158
kind : 'init'
163
159
} )
164
160
}
@@ -168,11 +164,7 @@ function element(node, context) {
168
164
expression : { type : 'ObjectExpression' , properties : cssProperties }
169
165
}
170
166
} else {
171
- value = {
172
- type : 'Literal' ,
173
- value : String ( value ) ,
174
- raw : JSON . stringify ( String ( value ) )
175
- }
167
+ value = { type : 'Literal' , value : String ( value ) }
176
168
}
177
169
178
170
attributes . push ( {
@@ -276,11 +268,7 @@ function mdxJsxElement(node, context) {
276
268
}
277
269
// Anything else.
278
270
else {
279
- value = {
280
- type : 'Literal' ,
281
- value : String ( value ) ,
282
- raw : JSON . stringify ( String ( value ) )
283
- }
271
+ value = { type : 'Literal' , value : String ( value ) }
284
272
}
285
273
286
274
attributes . push (
@@ -390,11 +378,7 @@ function text(node) {
390
378
391
379
return create ( node , {
392
380
type : 'JSXExpressionContainer' ,
393
- expression : inherit ( node , {
394
- type : 'Literal' ,
395
- value : value ,
396
- raw : JSON . stringify ( value )
397
- } )
381
+ expression : inherit ( node , { type : 'Literal' , value : value } )
398
382
} )
399
383
}
400
384
0 commit comments