UNPKG

tsconfig.js

Version:

Polyfill for tsconfig.js, because TypeScript does not natively support JS config files

16 lines (11 loc) 275 B
const resolvePath = require('./resolve-path') module.exports = extractDependencies function extractDependencies (filepath) { filepath = resolvePath(filepath) if (!require.cache[filepath]) { return } return require.cache[filepath] .children .map(({ id }) => id) }