Hacker News new | ask | show | jobs
by mike-cardwell 2911 days ago
With a js app packaged using babel, you can use the https://babeljs.io/docs/en/next/babel-preset-env.html preset to specify which browsers you want to support, and it will only transpile the features necessary to support those browsers. You can for example tell it you only want to support browsers with >0.25% of the browser market share, and it will figure out which browsers that includes and which features those browsers have.