chore(v2): Adopt corejs 3 and only import at entry point (#3055)

This commit is contained in:
Sam Zhou 2020-07-13 21:36:00 -04:00 committed by GitHub
parent f947036595
commit 7660005db8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 4 deletions

View file

@ -25,8 +25,8 @@ function getSWBabelLoader() {
[
require.resolve('@babel/preset-env'),
{
useBuiltIns: 'usage',
corejs: '2',
useBuiltIns: 'entry',
corejs: '3',
// See https://twitter.com/jeffposnick/status/1280223070876315649
targets: 'chrome >= 56',
},