added format support to distinguish amd and cjs modules