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.
2 parents 6c8564f + edba0d2 commit 7db69bbCopy full SHA for 7db69bb
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