Script Loader: Disable injectPolyfill flag in webpack config.

This is a follow-up to [57981] to ensure that `wp-polyfill` is no longer automatically added as a dependency to package scripts. This avoids unnecessarily loading the polyfill script in places such as the block editor.

See #60962.

git-svn-id: https://develop.svn.wordpress.org/trunk@58162 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Pascal Birchler 2024-05-16 16:42:57 +00:00
parent 19faad7744
commit 559e729cc8
2 changed files with 2 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -198,7 +198,7 @@ module.exports = function (
plugins: [
...baseConfig.plugins,
new DependencyExtractionPlugin( {
injectPolyfill: true,
injectPolyfill: false,
combineAssets: true,
combinedOutputFile: `../../assets/script-loader-packages${ suffix }.php`,
} ),