Skip to content

Commit

Permalink
fix(schema-compiler): ExportNamedDeclaration for variables object
Browse files Browse the repository at this point in the history
  • Loading branch information
arkadiusz-swierczek-pm authored and bopazyn committed Oct 3, 2024
1 parent f40062b commit 6777642
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export class ImportExportTranspiler implements TranspilerInterface {
}
});
const addExportCall = t.callExpression(t.identifier('addExport'), [t.objectExpression(<t.ObjectProperty[]>declarations)]);
if (path.get('declaration')) {
if ('declaration' in path.node && path.node.declaration) {
path.replaceWithMultiple([
// @todo fix without any
(<any>path.get('declaration')).node,
Expand Down

0 comments on commit 6777642

Please sign in to comment.