babel-preset-env lets you target specific environments and reduces the code that needs to be transpiled: https://github.com/babel/babel-preset-env/blob/master/README.md #javascript