Skip to content

Commit 43dc44e

Browse files
author
Tim Roes
committed
Fix i18n babel config
1 parent b0e597e commit 43dc44e

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/dev/i18n/extractors/code.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,16 @@ export function* extractCodeMessages(buffer, reporter) {
6767
try {
6868
ast = parse(buffer.toString(), {
6969
sourceType: 'module',
70-
plugins: ['jsx', 'typescript', 'objectRestSpread', 'classProperties', 'asyncGenerators', 'dynamicImport'],
70+
plugins: [
71+
'jsx',
72+
'typescript',
73+
'objectRestSpread',
74+
'classProperties',
75+
'asyncGenerators',
76+
'dynamicImport',
77+
'nullishCoalescingOperator',
78+
'optionalChaining',
79+
],
7180
});
7281
} catch (error) {
7382
if (error instanceof SyntaxError) {

0 commit comments

Comments
 (0)