Closed cberane closed 3 years ago
I am also having this issue - my polyfills work fine (I'm trying to polyfill for IE11) in dev mode, but when compiling for prod, they stop working.
Removing .extract()
worked for me - it was the vendor.js file that was not getting polyfills, so if I stop extracting the vendor code, the regular combined bundle works fine. It is a shame not to be able to extract the vendor modules, but for now it's more important for me to be able to polyfill for IE11.
Hopefully this bug gets fixed, but I wanted to share our solution as it might provide more information or help others with the same issue.
On further tests I noticed that removing extract()
worked as expected - but still only in dev
-mode. Furthermore I completely removed the polyfill and the script still worked in dev
-mode.
So this could be an issue in laravel-mix
, removing some needed script parts while minifying. I will open an issue there 🙂
We have multiple iPod Touch 4th Generation (with iOS 9.3.5) and wanted to release a new internal VueJS-Based mobile app. All tests worked on newer devices but failed on the old devices. I then found
laravel-mix-polyfill
as a possible solution.I have a very unusual situation with laravel-mix 6 and the polyfills:
npm run dev
, all scripts are working on iOS 9 (in Safari 9):npm run prod
, Vue.JS won't workBecause of the old iOS version (no upgrade available) I can not debug Safari on Mac OS X Big Sur - so unfortunately there is no error log available. Otherwise I probably just can't get the setup right 😋
The
package.json
:The
webpack.mix.json
:Does anybody have a hint, how to resolve this error?
Thanks in advance. Kind regards,
Cris