Files
ClassFeedback/node_modules/puppeteer-core/lib/puppeteer/environment.js
2026-07-05 20:33:53 +08:00

26 lines
671 B
JavaScript

/**
* @license
* Copyright 2020 Google Inc.
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @internal
*/
export const isNode = !!(typeof process !== 'undefined' && process.version);
/**
* Holder for environment dependencies. These dependencies cannot
* be used during the module instantiation.
*/
export const environment = {
value: {
get fs() {
throw new Error('fs is not available in this environment');
},
ScreenRecorder: class {
constructor() {
throw new Error('ScreenRecorder is not available in this environment');
}
},
},
};
//# sourceMappingURL=environment.js.map