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 177c9a6 commit a786b3fCopy full SHA for a786b3f
test_harness/detectExportDeclaration.cjs
@@ -0,0 +1,8 @@
1
+export default function detectExportDeclaration(node) {
2
+ return (node.type === 'ExportNamedDeclaration' ||
3
+ node.type === 'ExportAllDeclaration') &&
4
+ node.source &&
5
+ node.source.value
6
+ ? [node.source.value]
7
+ : [];
8
+}
0 commit comments