babelify-config.js 594 B

12345678910111213141516171819202122
  1. // Target a version without class support due to this issue:
  2. // https://stackoverflow.com/q/43307607
  3. // This does not mean that we support Firefox <60ESR!
  4. // We will increase the target again once FF52 has died out.
  5. const minFirefoxTarget = 44;
  6. const babelifyConfig = {
  7. presets: [
  8. ['@babel/preset-env', {
  9. useBuiltIns: 'entry',
  10. targets: {
  11. firefox: minFirefoxTarget,
  12. chrome: 65,
  13. opera: 52,
  14. safari: 11,
  15. },
  16. }],
  17. ],
  18. extensions: '.ts',
  19. }
  20. module.exports = babelifyConfig;