Skip to content

Instantly share code, notes, and snippets.

@nickmccurdy
Last active March 1, 2024 00:24
Show Gist options
  • Save nickmccurdy/ad7d2641f9b7b8c6012d031edab790c4 to your computer and use it in GitHub Desktop.
Save nickmccurdy/ad7d2641f9b7b8c6012d031edab790c4 to your computer and use it in GitHub Desktop.
Puppeteer Replay bundle example
{
"private": true,
"scripts": {
"prepare": "webpack"
},
"dependencies": {
"@puppeteer/replay": "^1.0.0",
"puppeteer": "^16.2.0",
"webpack": "^5.74.0",
"webpack-cli": "^4.10.0"
}
}
import "@puppeteer/replay"
export default {
mode: "production",
resolve: {
fallback: {
assert: false,
bufferutil: false,
child_process: false,
constants: false,
crypto: false,
dns: false,
fs: false,
http: false,
https: false,
module: false,
net: false,
os: false,
path: false,
readline: false,
stream: false,
tls: false,
url: false,
"utf-8-validate": false,
util: false,
zlib: false,
},
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment