We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 26b7d57 commit b1bd612Copy full SHA for b1bd612
javascript/extractor/lib/typescript/src/common.ts
@@ -9,7 +9,7 @@ import { VirtualSourceRoot } from "./virtual_source_root";
9
const packageNameRex = /^(?:@[\w.-]+[/\\]+)?\w[\w.-]*(?=[/\\]|$)/;
10
const extensions = ['.ts', '.tsx', '.d.ts', '.js', '.jsx'];
11
12
-export function getPackageName(importString: string) {
+function getPackageName(importString: string) {
13
let packageNameMatch = packageNameRex.exec(importString);
14
if (packageNameMatch == null) return null;
15
let packageName = packageNameMatch[0];
0 commit comments