How to use the isExportAllDeclaration function from @babel/types

Find comprehensive JavaScript @babel/types.isExportAllDeclaration code examples handpicked from public code repositorys.

189
190
191
192
193
194
195
196
197
198
        };
}

function isExport(node) {
        return (
                t.isExportAllDeclaration(node) ||
                t.isExportDeclaration(node) ||
                t.isExportDefaultDeclaration(node) ||
                t.isExportNamedDeclaration(node) ||
                t.isExportNamespaceSpecifier(node)
fork icon2
star icon35
watch icon2

+ 33 other calls in file

88
89
90
91
92
93
94
95
96
97
  }
}

// 覆盖ExportAllDeclaration、ExportNamedDeclaration、ImportDeclaration
if (
  t.isExportAllDeclaration(path.node) ||
  t.isExportNamedDeclaration(path.node) ||
  t.isImportDeclaration(path.node)
) {
  if (
fork icon1
star icon5
watch icon0

Other functions in @babel/types

Sorted by popularity

function icon

@babel/types.identifier is the most popular function in @babel/types (20936 examples)