Support CommonJS and AMD loaders