E
E
Elena2020-11-03 12:06:25
webpack
Elena, 2020-11-03 12:06:25

How to add yandex browser and google chrome mobile in babel targets?

It is necessary to add support for the Yandex browser and chrome mobile, but I did not find on the Internet how to add these particular options. Maybe they don't exist? Or is chrome enough?

const presets = [
  [
    '@babel/env',
    {
      targets: {
        edge: '15',
        firefox: '50',
        chrome: '64',
        safari: '11.1',
      },
      useBuiltIns: 'usage',
      corejs: '3.4.1',
    },
  ],
];

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question