My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

Compile JavaScript to IE11 (ES5?)

Emil Moe's photo
Emil Moe
·Sep 26, 2017

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?