Answer the question
In order to leave comments, you need to log in
How to build an es6 bundle in Laravel-mix or Webpack?
Good afternoon, there is a web application which is written with es6 and es2017 syntax. IE 11 support is not required. js uses classes, arrow functions, etc.
Is it possible to force Laravel-mix or Webpack to bundle in es6? because almost everywhere there is already support.
The bundle is built in es5. The size of the bundle is inflated and this is reflected in the speed of work.
Hunting so that the js modules are inside the bundle and pulled up from there.
Even Google in their video recommends using native ES2017.
The only option I've found is to use Vite, but would like to with Laravel-mix or pure Webpack
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question