Skip to content

Commit

Permalink
Update the parse options to support what calypso uses (#68)
Browse files Browse the repository at this point in the history
* Update the parse options to support what calypso uses

Add exportDefaultFrom, exportNamespaceFrom, and dynamicImport.

* Alphabetize plugins
  • Loading branch information
blowery authored and sirreal committed Dec 11, 2018
1 parent 17c51d7 commit 571aae6
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion packages/i18n-calypso/cli/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,20 @@ module.exports = function( config ) {

parser = new Xgettext( {
keywords: parserKeywords,
parseOptions: { plugins: [ 'jsx', 'classProperties', 'objectRestSpread', 'exportExtensions', 'trailingFunctionCommas', 'asyncFunctions' ], allowImportExportEverywhere: true }
parseOptions: {
plugins: [
'asyncFunctions',
'classProperties',
'dynamicImport',
'exportDefaultFrom',
'exportExtensions',
'exportNamespaceFrom',
'jsx',
'objectRestSpread',
'trailingFunctionCommas'
],
allowImportExportEverywhere: true
}
} );

function getFileMatches( inputFiles ) {
Expand Down

0 comments on commit 571aae6

Please sign in to comment.