Laravel Mix Polyfill
First, install the extension.
npm install laravel-mix-polyfill --save-dev
yarn add laravel-mix-polyfill --dev
Then, require it within your
let mix = ;;mix;
||Should polyfill be used.|
||See here for detailed description. Possible values are:
||Allows a target (browser) environment to be specified. This can either be:
• a browserslist-compatible query (
• an object of minimum environment versions to support (
• Setting to
You can test string values on browserl.ist.
||The version of core-js to be used.|
||Outputs the targets/plugins used to the console.|
core-js@3 the entry points were changed to allow for more flexibility.
The following common presets have been included for ease, and will be inserted into the entry point for you automatically.
"stable" has been set as the default as it is a full equal of the now deprecated
@babel/polyfill package which was used previously.
||Polyfill only stable
||Polyfill only stable ES features.|
||Imports copied from the latest
||Do not use a preset (you will need to add your own imports to the top of your entry point).|