refactor: use dynamic import directly

This commit is contained in:
alex8088
2023-12-12 23:11:36 +08:00
parent 5de87d681b
commit b578f61f1c
2 changed files with 2 additions and 4 deletions

View File

@@ -9,8 +9,6 @@ export function isObject(value: unknown): value is Record<string, unknown> {
return Object.prototype.toString.call(value) === '[object Object]'
}
export const dynamicImport = new Function('file', 'return import(file)')
export const wildcardHosts = new Set(['0.0.0.0', '::', '0000:0000:0000:0000:0000:0000:0000:0000'])
export function resolveHostname(optionsHost: string | boolean | undefined): string {