UNPKG

tshy

Version:

TypeScript HYbridizer - Hybrid (CommonJS/ESM) TypeScript node package builder

12 lines 402 B
import { join } from 'path/posix'; import { resolveExport } from './resolve-export.js'; export default (exp) => { const i = resolveExport(exp, ['import']); const r = resolveExport(exp, ['require']); if (i && join(i).startsWith('src/')) return false; if (r && join(r).startsWith('src/')) return false; return true; }; //# sourceMappingURL=valid-external-export.js.map