Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

394 B
Raw Blame
// Fixture: a justified dynamic import of an optional native dependency.
export const loadNativeWatcher = async () => {
  try {
    // `@parcel/watcher` is an optional native addon; it is absent on the
    // slim Docker image, so resolve it lazily and fall back to polling.
    const watcher = await import('@parcel/watcher');
    return watcher.subscribe;
  } catch {
    return null;
  }
};