Finds all local JavaScript and TypeScript dependencies (ES module imports and CommonJS require()) from a filename.