mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: vendor Mitt & update project structure (#6209)
* chore: vendor Mitt into src/common/third-party As discussed in #6203 we need to vendor our common dependencies in so that when we ship an ESM build all imports point to file paths and do not rely on Node resolution (e.g. a browser does not understand `import mitt from 'mitt'`).
This commit is contained in:
@@ -39,32 +39,32 @@ const fs = require('fs');
|
||||
* part of the TSDoc migration.
|
||||
*/
|
||||
const MODULES_TO_CHECK_FOR_COVERAGE = {
|
||||
Accessibility: '../lib/cjs/common/Accessibility',
|
||||
Browser: '../lib/cjs/common/Browser',
|
||||
BrowserContext: '../lib/cjs/common/Browser',
|
||||
BrowserFetcher: '../lib/cjs/node/BrowserFetcher',
|
||||
CDPSession: '../lib/cjs/common/Connection',
|
||||
ConsoleMessage: '../lib/cjs/common/ConsoleMessage',
|
||||
Coverage: '../lib/cjs/common/Coverage',
|
||||
Dialog: '../lib/cjs/common/Dialog',
|
||||
ElementHandle: '../lib/cjs/common/JSHandle',
|
||||
ExecutionContext: '../lib/cjs/common/ExecutionContext',
|
||||
EventEmitter: '../lib/cjs/common/EventEmitter',
|
||||
FileChooser: '../lib/cjs/common/FileChooser',
|
||||
Frame: '../lib/cjs/common/FrameManager',
|
||||
JSHandle: '../lib/cjs/common/JSHandle',
|
||||
Keyboard: '../lib/cjs/common/Input',
|
||||
Mouse: '../lib/cjs/common/Input',
|
||||
Page: '../lib/cjs/common/Page',
|
||||
Puppeteer: '../lib/cjs/common/Puppeteer',
|
||||
HTTPRequest: '../lib/cjs/common/HTTPRequest',
|
||||
HTTPResponse: '../lib/cjs/common/HTTPResponse',
|
||||
SecurityDetails: '../lib/cjs/common/SecurityDetails',
|
||||
Target: '../lib/cjs/common/Target',
|
||||
TimeoutError: '../lib/cjs/common/Errors',
|
||||
Touchscreen: '../lib/cjs/common/Input',
|
||||
Tracing: '../lib/cjs/common/Tracing',
|
||||
WebWorker: '../lib/cjs/common/WebWorker',
|
||||
Accessibility: '../lib/cjs/puppeteer/common/Accessibility',
|
||||
Browser: '../lib/cjs/puppeteer/common/Browser',
|
||||
BrowserContext: '../lib/cjs/puppeteer/common/Browser',
|
||||
BrowserFetcher: '../lib/cjs/puppeteer/node/BrowserFetcher',
|
||||
CDPSession: '../lib/cjs/puppeteer/common/Connection',
|
||||
ConsoleMessage: '../lib/cjs/puppeteer/common/ConsoleMessage',
|
||||
Coverage: '../lib/cjs/puppeteer/common/Coverage',
|
||||
Dialog: '../lib/cjs/puppeteer/common/Dialog',
|
||||
ElementHandle: '../lib/cjs/puppeteer/common/JSHandle',
|
||||
ExecutionContext: '../lib/cjs/puppeteer/common/ExecutionContext',
|
||||
EventEmitter: '../lib/cjs/puppeteer/common/EventEmitter',
|
||||
FileChooser: '../lib/cjs/puppeteer/common/FileChooser',
|
||||
Frame: '../lib/cjs/puppeteer/common/FrameManager',
|
||||
JSHandle: '../lib/cjs/puppeteer/common/JSHandle',
|
||||
Keyboard: '../lib/cjs/puppeteer/common/Input',
|
||||
Mouse: '../lib/cjs/puppeteer/common/Input',
|
||||
Page: '../lib/cjs/puppeteer/common/Page',
|
||||
Puppeteer: '../lib/cjs/puppeteer/common/Puppeteer',
|
||||
HTTPRequest: '../lib/cjs/puppeteer/common/HTTPRequest',
|
||||
HTTPResponse: '../lib/cjs/puppeteer/common/HTTPResponse',
|
||||
SecurityDetails: '../lib/cjs/puppeteer/common/SecurityDetails',
|
||||
Target: '../lib/cjs/puppeteer/common/Target',
|
||||
TimeoutError: '../lib/cjs/puppeteer/common/Errors',
|
||||
Touchscreen: '../lib/cjs/puppeteer/common/Input',
|
||||
Tracing: '../lib/cjs/puppeteer/common/Tracing',
|
||||
WebWorker: '../lib/cjs/puppeteer/common/WebWorker',
|
||||
};
|
||||
|
||||
function traceAPICoverage(apiCoverage, className, modulePath) {
|
||||
|
||||
Reference in New Issue
Block a user