function updateDefaultExport(ast, componentName) {
	const exportDeclaration = ast.program.body.find(item => item.type === 'ExportDefaultDeclaration');
	// create the export property
	const expProperty = recast.types.builders.objectProperty(
		recast.types.builders.identifier(componentName),
		recast.types.builders.identifier(componentName)
	);
	expProperty.shorthand = true;  // do not repeat Foo: Foo
	// add it
	exportDeclaration.declaration.properties.push(expProperty);
}
/**
 * Modify the AST export default declaration
 * @param {Object} AST the ast of the parsed source code
 * @param {string} componentName the name of the generated component
 * @return undefined
 */
Modify the AST export default declaration
@param {Object} AST the ast of the parsed source code
@param {string} componentName the name of the generated component
@return undefined
Modify the AST export default declaration @param { Object } AST the ast of the parsed source code @param { string } componentName the name of the generated component @return undefined
function updateDefaultExport(ast, componentName) {
	const exportDeclaration = ast.program.body.find(item => item.type === 'ExportDefaultDeclaration');
	const expProperty = recast.types.builders.objectProperty(
		recast.types.builders.identifier(componentName),
		recast.types.builders.identifier(componentName)
	);
	expProperty.shorthand = true;  
	exportDeclaration.declaration.properties.push(expProperty);
}
function updateDefaultExport ( ast , componentName ) { const exportDeclaration = ast . program . body . find ( item => item . type === 'ExportDefaultDeclaration' ) ; const expProperty = recast . types . builders . objectProperty ( recast . types . builders . identifier ( componentName ) , recast . types . builders . identifier ( componentName ) ) ; expProperty . shorthand = true ; exportDeclaration . declaration . properties . push ( expProperty ) ; }
Modify the AST export default declaration
 @param {Object} AST the ast of the parsed source code
 @param {string} componentName the name of the generated component
 @return undefined
Modify the AST export default declaration @param { Object } AST the ast of the parsed source code @param { string } componentName the name of the generated component @return undefined
// create the export property // do not repeat Foo: Foo // add it