Skip to content

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

Merged
petitphp merged 1 commit intomasterfrom
fix/skip-default-polyfill
Jun 2, 2023
Merged

fix (webpack): don't include wp-polyfill dependencies automatically#350
petitphp merged 1 commit intomasterfrom
fix/skip-default-polyfill

Conversation

@petitphp
Copy link
Copy Markdown
Member

@petitphp petitphp commented Jun 1, 2023

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.

@petitphp petitphp requested review from Rahe, firestar300 and ptesei June 1, 2023 20:19
Follow up to #278, remove option `injectPolyfill` in webpack plugin
dependency-extraction-webpack-plugin. The `wp-polyfill` script won't
be added as a dependency to all entries anymore. 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 dependency requires it.
@petitphp petitphp force-pushed the fix/skip-default-polyfill branch from f8d413a to b3a646c Compare June 1, 2023 20:23
@petitphp petitphp merged commit 14cd736 into master Jun 2, 2023
@petitphp petitphp deleted the fix/skip-default-polyfill branch June 2, 2023 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants