Skip to content
This repository was archived by the owner on Jun 8, 2019. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 0 additions & 15 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -307,21 +307,6 @@ export default function ({types: t}) {
// Evaluate the Message Descriptor values, then store it.
descriptor = evaluateMessageDescriptor(descriptor);
storeMessage(descriptor, messageObj, state);

// Remove description since it's not used at runtime.
messageObj.replaceWith(t.objectExpression([
t.objectProperty(
t.stringLiteral('id'),
t.stringLiteral(descriptor.id)
),
t.objectProperty(
t.stringLiteral('defaultMessage'),
t.stringLiteral(descriptor.defaultMessage)
),
]));

// Tag the AST node so we don't try to extract it twice.
tagAsExtracted(messageObj);
}

if (referencesImport(callee, moduleSourceName, FUNCTION_NAMES)) {
Expand Down