We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14ae6a4 commit 9e4f337Copy full SHA for 9e4f337
packages/cubejs-schema-compiler/src/compiler/transpilers/ImportExportTranspiler.ts
@@ -50,7 +50,7 @@ export class ImportExportTranspiler implements TranspilerInterface {
50
}
51
});
52
const addExportCall = t.callExpression(t.identifier('addExport'), [t.objectExpression(<t.ObjectProperty[]>declarations)]);
53
- if (path.get('declaration')) {
+ if ('declaration' in path.node && path.node.declaration) {
54
path.replaceWithMultiple([
55
// @todo fix without any
56
(<any>path.get('declaration')).node,
0 commit comments