Gathering detailed insights and metrics for laravel-mix-polyfill
Gathering detailed insights and metrics for laravel-mix-polyfill
Gathering detailed insights and metrics for laravel-mix-polyfill
Gathering detailed insights and metrics for laravel-mix-polyfill
A Laravel Mix extension to include polyfills by using Babel, core-js, and regenerator-runtime
npm install laravel-mix-polyfill
Typescript
Module System
Node Version
NPM Version
42.5
Supply Chain
48
Quality
66.2
Maintenance
50
Vulnerability
94.6
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
48 Stars
57 Commits
6 Forks
3 Watchers
1 Branches
1 Contributors
Updated on Apr 26, 2025
Latest Version
3.0.1
Package Id
laravel-mix-polyfill@3.0.1
Unpacked Size
8.69 kB
Size
3.54 kB
File Count
8
NPM Version
6.14.12
Node Version
12.22.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
1
A Laravel Mix extension to include polyfills by using Babel, core-js, and regenerator-runtime.
First, install the extension.
npm install laravel-mix-polyfill --save-dev
or
yarn add laravel-mix-polyfill --dev
Then, require it within your webpack.mix.js
file:
1let mix = require('laravel-mix'); 2 3require('laravel-mix-polyfill'); 4 5mix.js('resources/js/app.js', 'public/js') 6 .sass('resources/sass/app.scss', 'public/css') 7 .polyfill({ 8 enabled: true, 9 useBuiltIns: "usage", 10 targets: "firefox 50, IE 11" 11 });
Name | Type | Default | Description |
---|---|---|---|
enabled | boolean | true | Should polyfill be used. |
useBuiltIns | string | "usage" | See here for detailed description. Possible values are: • "usage" • "entry" • false |
targets | string , boolean | "defaults" | Allows a target (browser) environment to be specified. This can either be: • a browserslist-compatible query ( "> 0.25%, not dead" ),• or false to transform all ECMAScript 2015+ code by default. • Setting to false will also allow use of browserslist config sources (like .browserslistrc). See here and here for more information. You can test string values on browserl.ist. |
entryPoints | string , boolean | "stable" | Used when useBuiltIns is set to "entry" . See below for possible values. |
corejs | number | 3 | The version of core-js to be used. |
debug | boolean | false | Outputs the targets/plugins used to the console. |
In 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.
Value | Description |
---|---|
"stable" | Polyfill only stable core-js features - ES and web standards. |
"all" | Polyfill all core-js features. |
"es" | Polyfill only stable ES features. |
"classic" | Imports copied from the latest @babel/polyfill package (before it was deprecated). |
false | Do not use a preset (you will need to add your own imports to the top of your entry point). |
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 0/9 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More