Configuring Babel with target presets (browser support)

0

I just started getting a bit more into the babel setting when I had to start using babel-polyfill .

Well, my doubt at first seems obvious but I can not find it in the docs.

I have the following configuration, where I support the following browsers supported by ( bootstrap@4 ), I suppose that when I set " targets " and place each client with its version I am supporting from the indicated version to the current one, someone can confirm me or I have to use, ahem:

"android": ">=4.4".

const presets = [
  ["@babel/env", {
    targets: {
      android: "4.4",
      edge: "12",
      firefox: "38",
      chrome: "45",
      ie: "10",
      ios: "9",
      opera: "30",
      safari: "9"
    },
    modules: false,
    useBuiltIns: "usage",
    debug: true
  }]
];

module.exports = { presets };
    
asked by AndreOlaya 04.09.2018 в 17:13
source

0 answers