UNPKG

696 BPlain TextView Raw
1/**
2 * @license
3 * Copyright 2017 Google Inc.
4 * SPDX-License-Identifier: Apache-2.0
5 */
6
7export * from './index.js';
8
9import fs from 'fs';
10import path from 'path';
11
12import {environment} from './environment.js';
13
14import * as Puppeteer from './index.js';
15
16// Set up Node-specific environment dependencies.
17environment.value = {
18 fs,
19 path,
20 ScreenRecorder: Puppeteer.ScreenRecorder,
21};
22/**
23 * @public
24 */
25const puppeteer = new Puppeteer.PuppeteerNode({
26 isPuppeteerCore: true,
27});
28
29export const {
30 /**
31 * @public
32 */
33 connect,
34 /**
35 * @public
36 */
37 defaultArgs,
38 /**
39 * @public
40 */
41 executablePath,
42 /**
43 * @public
44 */
45 launch,
46} = puppeteer;
47
48export default puppeteer;