Closed bert-w closed 4 years ago
If you know how to use .babelrc
then that's a solution. This extension is just designed to make it easier, or for people who just want to have everything in their webpack.mix.js
. I like being able to add .polyfill()
to the mix chain and know everything is taken care of.
Each to their own 😊
I was looking around for some Babel polyfill support in Laravel-Mix, but then I found out I already managed to fix this in another project. You can simply use a
.babelrc
file and yourwebpack.mix.js
will pick it up. It is supported by default.Contents of
.babelrc
:You can then assign targets using a
.browserslistrc
file, or just add a"targets":{...}
key next to theuseBuiltIns
key above.