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:
@@ -25,5 +25,5 @@
|
||||
* This means that we can publish to CJS and ESM whilst maintaining the expected
|
||||
* import behaviour for CJS and ESM users.
|
||||
*/
|
||||
const puppeteerExport = require('./lib/cjs/index');
|
||||
const puppeteerExport = require('./lib/cjs/puppeteer/index');
|
||||
module.exports = puppeteerExport.default;
|
||||
|
||||
Reference in New Issue
Block a user