puppeteer-core.ts (706B)
1 /** 2 * @license 3 * Copyright 2017 Google Inc. 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 export * from './index.js'; 8 9 import fs from 'node:fs'; 10 import path from 'node:path'; 11 12 import {environment} from './environment.js'; 13 14 import * as Puppeteer from './index.js'; 15 16 // Set up Node-specific environment dependencies. 17 environment.value = { 18 fs, 19 path, 20 ScreenRecorder: Puppeteer.ScreenRecorder, 21 }; 22 /** 23 * @public 24 */ 25 const puppeteer = new Puppeteer.PuppeteerNode({ 26 isPuppeteerCore: true, 27 }); 28 29 export 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 48 export default puppeteer;