Skip to content
This repository has been archived by the owner on Jun 8, 2019. It is now read-only.

Commit

Permalink
Fix Babel 7 compatibility (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
houfio authored and okuryu committed Dec 11, 2017
1 parent b7f34c6 commit 6f4a533
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,9 @@ export default function ({types: t}) {

post(file) {
const {opts} = this;
const {basename, filename} = file.opts;
const {filename} = file.opts;

const basename = p.basename(filename, p.extname(filename));
const messages = file.get(MESSAGES);
const descriptors = [...messages.values()];
file.metadata['react-intl'] = {messages: descriptors};
Expand Down

0 comments on commit 6f4a533

Please sign in to comment.