Skip to content

Commit 15dbf21

Browse files
committed
build: update dist with re-export detection
1 parent fa145a0 commit 15dbf21

2 files changed

Lines changed: 15 additions & 1 deletion

File tree

mini-typescript-hero/dist/extension.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240687,6 +240687,20 @@ var ImportManager = class {
240687240687
localDeclarations.add(name);
240688240688
}
240689240689
});
240690+
this.sourceFile.getExportDeclarations().forEach((exportDecl) => {
240691+
const namedExports = exportDecl.getNamedExports();
240692+
namedExports.forEach((named) => {
240693+
this.usedIdentifiers.add(named.getName());
240694+
});
240695+
});
240696+
this.sourceFile.getDefaultExportSymbol()?.getDeclarations().forEach((decl) => {
240697+
if (import_ts_morph.Node.isExportAssignment(decl)) {
240698+
const expression = decl.getExpression();
240699+
if (import_ts_morph.Node.isIdentifier(expression)) {
240700+
this.usedIdentifiers.add(expression.getText());
240701+
}
240702+
}
240703+
});
240690240704
const allIdentifiers = this.sourceFile.getDescendantsOfKind(import_ts_morph.SyntaxKind.Identifier);
240691240705
for (const identifier of allIdentifiers) {
240692240706
const identifierText = identifier.getText();

mini-typescript-hero/dist/extension.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)