MCPcopy
hub / github.com/FredKSchott/snowpack / isFsEventsEnabled

Function isFsEventsEnabled

snowpack/src/util.ts:175–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173 * detection fails for many libraries. This function helps add back support.
174 */
175export 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). */
185export function parsePackageImportSpecifier(imp: string): [string, string | null] {

Callers 1

startServerFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected