BeAPI / beapi-frontend-framework

WordPress friendly Front-End framework.
https://beapi.fr
68 stars 18 forks source link

fix (webpack): don't include wp-polyfill dependencies automatically #350

Closed petitphp closed 1 year ago

petitphp commented 1 year ago

Follow up to #278, remove option injectPolyfill in webpack plugin dependency-extraction-webpack-plugin. This will reduce the number of scripts loaded on the page and save on resources. Scripts will need to explicitely declare the dependencies if they want to include it. The dependency will also be included if one of the script dependecy requires it.