mirror of
https://github.com/bitinflow/server.git
synced 2026-03-13 13:35:53 +00:00
switch babel-register to esm
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user