Skip to content

Commit

Permalink
add _babelPolyfill to core-js detection script
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Aug 23, 2021
1 parent a3f2dc0 commit aef98d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/usage.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ await Promise.all(Array(Math.ceil(os.cpus().length / 2)).fill(0).map(async i =>
await page.goto(site);
// seems js hangs on some sites, so added a time limit
const { core, vm, vl } = await pTimeout(page.evaluate(`({
core: !!window['__core-js_shared__'] || !!window.core,
core: !!window['__core-js_shared__'] || !!window.core || !!window._babelPolyfill,
vm: window['__core-js_shared__']?.versions,
vl: window.core?.version,
})`), 1e4, timeout);
Expand Down

0 comments on commit aef98d6

Please sign in to comment.