mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Refactor: rework tracer
This commit is contained in:
@@ -26,7 +26,7 @@ const removeNoResolved = (line: string) => line.replace(',no-resolve', '');
|
||||
/**
|
||||
* This only generates a simplified version, for under-used users only.
|
||||
*/
|
||||
export const buildSSPanelUIMAppProfile = task(import.meta.path, async (span) => {
|
||||
export const buildSSPanelUIMAppProfile = task(import.meta.main, import.meta.path)(async (span) => {
|
||||
const [
|
||||
domesticDomains,
|
||||
appleCdnDomains,
|
||||
@@ -115,10 +115,6 @@ export const buildSSPanelUIMAppProfile = task(import.meta.path, async (span) =>
|
||||
);
|
||||
});
|
||||
|
||||
if (import.meta.main) {
|
||||
buildSSPanelUIMAppProfile();
|
||||
}
|
||||
|
||||
const isTruthy = <T>(i: T | 0 | '' | false | null | undefined): i is T => !!i;
|
||||
|
||||
function generateAppProfile(
|
||||
|
||||
Reference in New Issue
Block a user