fix: use both __dirname and require.resolve to support different bundlers (#8046)
fix: use both __dirname and require.resolve to support different bundlers (#8046)

Issues: #8044
puppeteer/puppeteer,puppeteer/puppeteer,puppeteer/puppeteer,puppeteer/puppeteer