Skip to content

Commit 9e4f337

Browse files
arkadiusz-swierczek-pmKSDaemon
authored andcommitted
fix(schema-compiler): ExportNamedDeclaration for variables object
1 parent 14ae6a4 commit 9e4f337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/cubejs-schema-compiler/src/compiler/transpilers/ImportExportTranspiler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export class ImportExportTranspiler implements TranspilerInterface {
5050
}
5151
});
5252
const addExportCall = t.callExpression(t.identifier('addExport'), [t.objectExpression(<t.ObjectProperty[]>declarations)]);
53-
if (path.get('declaration')) {
53+
if ('declaration' in path.node && path.node.declaration) {
5454
path.replaceWithMultiple([
5555
// @todo fix without any
5656
(<any>path.get('declaration')).node,

0 commit comments

Comments
 (0)