Sasha's avatar
Level 4

Laraver Mix - don't convert let and const to var on compile

Basic Larave mix functionality is converting let and const to var, but I would like it not to do this (I have several loops which depends on the let being in the scope). Is there some way to prevent this?

const mix = require('laravel-mix')

mix.js('resources/js/app.js', 'public/js')
    .sass('resources/sass/app.scss', 'public/css');
0 likes
2 replies
bobbybouwmann's avatar

Sounds to me that you're doing something funky in your code. What kind of code do you have that requires this?

Please or to participate in this conversation.