Update src/config-parser.js

Co-authored-by: Yoann Chaudet <[email protected]>
This commit is contained in:
James M. Greene
2022-08-09 11:22:14 -05:00
committed by GitHub
co-authored by Yoann Chaudet
parent 68595d0746
commit 891eba7f6e
+1 -1
View File
@@ -66,7 +66,7 @@ class ConfigParser {
// Indirect default export // Indirect default export
else if (defaultExport && defaultExport.declaration.type === 'Identifier') { else if (defaultExport && defaultExport.declaration.type === 'Identifier') {
const identifierName = defaultExport && defaultExport.declaration.name const identifierName = defaultExport.declaration.name
const identifierDefinition = ast.body.find( const identifierDefinition = ast.body.find(
node => node =>
node.type === 'VariableDeclaration' && node.type === 'VariableDeclaration' &&