This repository was archived by the owner on Jun 8, 2019. It is now read-only.
File tree 1 file changed +1
-20
lines changed
1 file changed +1
-20
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ const FUNCTION_NAMES = [
20
20
21
21
const DESCRIPTOR_PROPS = new Set ( [ 'id' , 'description' , 'defaultMessage' ] ) ;
22
22
23
- export default function ( { types : t } ) {
23
+ export default function ( ) {
24
24
function getModuleSourceName ( opts ) {
25
25
return opts . moduleSourceName || 'react-intl' ;
26
26
}
@@ -205,14 +205,6 @@ export default function ({types: t}) {
205
205
// checked.
206
206
if ( descriptor . defaultMessage ) {
207
207
storeMessage ( descriptor , path , state ) ;
208
-
209
- attributes
210
- . filter ( ( attr ) => {
211
- let keyPath = attr . get ( 'name' ) ;
212
- let key = getMessageDescriptorKey ( keyPath ) ;
213
- return key === 'description' ;
214
- } )
215
- . forEach ( ( attr ) => attr . remove ( ) ) ;
216
208
}
217
209
}
218
210
} ,
@@ -245,17 +237,6 @@ export default function ({types: t}) {
245
237
}
246
238
247
239
storeMessage ( descriptor , path , state ) ;
248
-
249
- messageObj . replaceWith ( t . objectExpression ( [
250
- t . objectProperty (
251
- t . stringLiteral ( 'id' ) ,
252
- t . stringLiteral ( descriptor . id )
253
- ) ,
254
- t . objectProperty (
255
- t . stringLiteral ( 'defaultMessage' ) ,
256
- t . stringLiteral ( descriptor . defaultMessage )
257
- ) ,
258
- ] ) ) ;
259
240
}
260
241
261
242
let callee = path . get ( 'callee' ) ;
You can’t perform that action at this time.
0 commit comments