Skip to content

Commit

Permalink
Fix i18n babel config
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Roes committed Nov 15, 2019
1 parent b0e597e commit 43dc44e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/dev/i18n/extractors/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,16 @@ export function* extractCodeMessages(buffer, reporter) {
try {
ast = parse(buffer.toString(), {
sourceType: 'module',
plugins: ['jsx', 'typescript', 'objectRestSpread', 'classProperties', 'asyncGenerators', 'dynamicImport'],
plugins: [
'jsx',
'typescript',
'objectRestSpread',
'classProperties',
'asyncGenerators',
'dynamicImport',
'nullishCoalescingOperator',
'optionalChaining',
],
});
} catch (error) {
if (error instanceof SyntaxError) {
Expand Down

0 comments on commit 43dc44e

Please sign in to comment.