Skip to content

Commit

Permalink
fix(babel.rc): bump supported browsers to those that have generator f…
Browse files Browse the repository at this point in the history
…unctionality

fix #8
  • Loading branch information
coreylight committed Feb 21, 2018
1 parent 97f7286 commit d8bb128
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/config/babelrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ const envModules = treeshake ? { modules: false } : {};

const envTargets = isTest
? { node: 'current' }
: isBrowser ? { browsers: ['> 1% in US'] } : { node: '6.10' };
: isBrowser
? {
// support browsers that include generator functions
browsers: ['> 1% in US', 'not ie < 12', 'not ios_saf < 10']
}
: { node: '6.10' };

const envOptions = Object.assign({}, envModules, { targets: envTargets });

Expand Down

0 comments on commit d8bb128

Please sign in to comment.