Compile JavaScript to IE11 (ES5?)
I have a Laravel project where I have some JavaScript files that are ES6 written, for instance I use let
. How can I compile this to be compliant to IE11? I assume I need to convert/compile it into ES5.
I came across this
npm install babel-preset-es2015
But I'm not sure if that's it and how to use it in Laravel mix?