chore: 开发流程使用 esbuild

This commit is contained in:
xream
2024-02-03 21:30:27 +08:00
parent 02d54208b0
commit ae1c738f70
4 changed files with 39 additions and 3 deletions

View File

@@ -63,7 +63,7 @@ function parse(raw) {
return proxies;
}
async function process(proxies, operators = [], targetPlatform, source) {
async function processFn(proxies, operators = [], targetPlatform, source) {
for (const item of operators) {
// process script
let script;
@@ -188,7 +188,7 @@ function produce(proxies, targetPlatform, type, opts = {}) {
export const ProxyUtils = {
parse,
process,
process: processFn,
produce,
isIPv4,
isIPv6,