Skip to content

Commit

Permalink
Add in missing Babel plugins for write-translations
Browse files Browse the repository at this point in the history
  • Loading branch information
yangshun authored Jul 8, 2018
1 parent ebb8627 commit b5bf53e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/write-translations.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@

require('babel-register')({
babelrc: false,
plugins: ['transform-class-properties'],
presets: ['env'],
plugins: [
require('./server/translate-plugin.js'),
'transform-class-properties',
'transform-object-rest-spread',
],
presets: ['react', 'env'],
});

const traverse = require('babel-traverse').default;
Expand Down

0 comments on commit b5bf53e

Please sign in to comment.