joshwcomeau / guppy

🐠A friendly application manager and task runner for React.js
ISC License
3.27k stars 154 forks source link

change browserslist config to `electron 2` #301

Closed mathieudutour closed 5 years ago

mathieudutour commented 5 years ago

Right now we compile the JS code down to:

   "development": [
      "last 2 chrome versions",
      "last 2 firefox versions",
      "last 2 edge versions"
    ],
    "production": [
      ">1%",
      "last 4 versions",
      "Firefox ESR",
      "not ie < 11"
    ]

while we only need electron 2. That could potentially lead to performance and size improvement by using the native ES methods.

I didn't create a PR right away because electron 2 is not recognised by the version of babel-preset-env that we use. We would need to update that as well and I believe it's nested in babel-preset-react-app.