code-migration-helpers
Version:
Provides useful (but currently not thorough) code migration helpers
16 lines • 666 B
JavaScript
import { getExports } from '../utils/getExports.mjs';
/**
* is it included in import or export specifiers
* if in export specifier
* if default, check if there's a default imported and re-exported
* if export, check for asterisk, name, or name re-exported
* if in import specifier
* if default or export, was it imported, and what was it imported as
* if imported, was it re-exported
*/
export async function filterExistingExportSources(sourceFile, entries) {
const { exportNodes } = getExports(sourceFile);
const newExportEntries = [];
return { newExportEntries, exportNodes };
}
//# sourceMappingURL=filterExistingExportSources.js.map