()
| 173 | * detection fails for many libraries. This function helps add back support. |
| 174 | */ |
| 175 | export function isFsEventsEnabled(): boolean { |
| 176 | try { |
| 177 | NATIVE_REQUIRE('fsevents'); |
| 178 | return true; |
| 179 | } catch (e) { |
| 180 | return false; |
| 181 | } |
| 182 | } |
| 183 | |
| 184 | /** Get the package name + an entrypoint within that package (if given). */ |
| 185 | export function parsePackageImportSpecifier(imp: string): [string, string | null] { |