This upgrades webpack to the latest version, which is quicker, and produces smaller bundles.
It also migrates the transpilation to babel-preset-env meaning we don't transpile nearly as much as we used to, since we don't have to (browser support is catching up on newer syntax). It now only transpiles what's needed for the last 2 versions of Chrome and Firefox (according to https://caniuse.com/).
Do tell if you think we should work on older versions as well (all modern browsers are evergreen, so I don't think that's necessary - up to you, though!)
The reason I did is, beyond the fact that we should use the newest version of stuff, is that we need the newer versions if I am to use async/await - which I want to 😄
This upgrades webpack to the latest version, which is quicker, and produces smaller bundles.
It also migrates the transpilation to
babel-preset-env
meaning we don't transpile nearly as much as we used to, since we don't have to (browser support is catching up on newer syntax). It now only transpiles what's needed for the last 2 versions of Chrome and Firefox (according to https://caniuse.com/). Do tell if you think we should work on older versions as well (all modern browsers are evergreen, so I don't think that's necessary - up to you, though!)