EmilMoe's avatar
Level 10

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?

0 likes
3 replies
EmilMoe's avatar
Level 10

Someone else must have hit this problem?

Please or to participate in this conversation.