Closed KorvinSzanto closed 4 years ago
@KorvinSzanto it is interesting that you are able to get the vendor libraries to polyfill by just omitting .extract()
as the contents of node_modules
is excluded by default in Laravel Mix.
However if you see the answer here you should be able to use .extract()
and polyfill the vendor libraries.
If you use mix.extract() to extract vendor files polyfills don't seem to apply to the outputted vendors.js file. My specific situation was trying to polyfill the spread operator for legacy edge, no matter what I tried the vendor.js file didn't get the polyfills. Thankfully I was able to just stop using .extract to get around this but that's not ideal.