Add support to conditional loading from ES6 modules