Support CommonJS and ES6 modules