79536165

Date: 2025-03-26 10:47:42
Score: 3
Natty:
Report link

I tried to Make puppeteer browser version but I failed

the article says to clone the puppeteer repo, install the dependencies and to build with rollup or webpack.

There are a couple of things I am not sure about

should I install the puppeteer repo in my project or ouside of my project ?

should I build my app with rollup or add a rollup build script to the puppeteer project after I cloned it ?

I don't know if my approach is right but I decided to clone puppeteer into my project and build everything with rollup and use my main.ts as an entry point for the rollup build.

Here is my concern : Why would I ever use vite and rollup for the same app ? Isn't one useless at this point ?

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: KarljoY973