switch babel-register to esm

This commit is contained in:
Roman Shtylman
2018-04-01 18:24:49 -07:00
parent 37df802cc0
commit 6b07a86ec1
9 changed files with 49 additions and 293 deletions

View File

@@ -3,7 +3,6 @@ import Koa from 'koa';
import tldjs from 'tldjs';
import Debug from 'debug';
import http from 'http';
import Promise from 'bluebird';
import { hri } from 'human-readable-ids';
import ClientManager from './lib/ClientManager';
@@ -14,7 +13,7 @@ function GetClientIdFromHostname(hostname) {
return tldjs.getSubdomain(hostname);
}
module.exports = function(opt) {
export default function(opt) {
opt = opt || {};
const manager = new ClientManager(opt);