mirror of
https://github.com/LukeHagar/electron-vite.git
synced 2025-12-09 12:27:43 +00:00
refactor: use dynamic import directly
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user