How to use the _preferredRevision function from puppeteer

Find comprehensive JavaScript puppeteer._preferredRevision code examples handpicked from public code repositorys.

56
57
58
59
60
61
62
63
64
65
if (pptrPackageJSON.puppeteer) {
  return pptrPackageJSON.puppeteer.chromium_revision;
}

if (puppeteer._preferredRevision) {
  return puppeteer._preferredRevision;
}

const pptr = require('./node_modules/puppeteer-core/lib/cjs/puppeteer/revisions');
return pptr.PUPPETEER_REVISIONS.chromium;
fork icon521
star icon0
watch icon0