How do I get Babel 6 to compile to ES5 javascript?
You don’t tell Babel to target ES5, you choose the necessary presets/plugins that do that for you. For example, if you use the es2015 preset, this will compile ES6 code to ES5-compatible code. You don’t specify a “target”. The guide below will take you through using Babel to transform ES6 code into code that can … Read more