move peekModule magic to export declaration parser.