mirror of
https://github.com/SukkaW/Surge.git
synced 2026-02-03 12:31:54 +08:00
Refactor: rework tracer
This commit is contained in:
@@ -20,7 +20,7 @@ export const getDomesticDomainsRulesetPromise = createMemoizedPromise(async () =
|
||||
return results;
|
||||
});
|
||||
|
||||
export const buildDomesticRuleset = task(import.meta.path, async (span) => {
|
||||
export const buildDomesticRuleset = task(import.meta.main, import.meta.path)(async (span) => {
|
||||
const rulesetDescription = [
|
||||
...SHARED_DESCRIPTION,
|
||||
'',
|
||||
@@ -66,7 +66,3 @@ export const buildDomesticRuleset = task(import.meta.path, async (span) => {
|
||||
)
|
||||
]);
|
||||
});
|
||||
|
||||
if (import.meta.main) {
|
||||
buildDomesticRuleset();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user