mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-28 17:41:54 +08:00
Refactor: drop all Bun compatability
This commit is contained in:
@@ -50,7 +50,7 @@ export const createRulesetForStreamService = (span: Span, fileId: string, title:
|
||||
]));
|
||||
};
|
||||
|
||||
export const buildStreamService = task(typeof Bun !== 'undefined' ? Bun.main === __filename : require.main === module, __filename)(async (span) => {
|
||||
export const buildStreamService = task(require.main === module, __filename)(async (span) => {
|
||||
return Promise.all([
|
||||
createRulesetForStreamService(span, 'stream', 'All', ALL),
|
||||
createRulesetForStreamService(span, 'stream_us', 'North America', NORTH_AMERICA),
|
||||
|
||||
Reference in New Issue
Block a user