wordpress/components package wrongly included
#759
Comments
Why would contributors need to translate strings that aren't under the Also, all of |
|
WordPress.org translation platform scans all strings irregardless of text domain for various reasons. The complete package is bundled as a polyfill on WP 4.x installs. |
We need to bundle it for pre-Gutenberg versions as a polyfill. However, I completely agree with the IB, we should fully eliminate this dependency and instead bundle that single function "manually". |
|
@swissspidy #802 is a version of your PR which targets |
|
Grepping through the content, looking through code with If there were particular strings showing up before it would be good to note those and I can specifically check for them. But this seems to work so QA |
|
@tofumatt See https://translate.wordpress.org/projects/wp-plugins/google-site-kit/dev/es/default/ for strings that are wrongly included. You'll see string like "Comma", "Error loading block: %s", and "Font Size" |
|
Didn't see any of those in the output, so |


Bug Description
The plugin bundles
@wordpress/componentsbecause it uses thewithFilterscomponent. That means unnecessarily including tons of JavaScript. One side effect of that is users having to translate irrelevant strings on https://translate.wordpress.org/projects/wp-plugins/google-site-kit/ because they're part of the package.The solution would be to copy the code of
withFiltersand ditch the components package entirely.Additional Context
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
withFiltersHOC from Gutenberg directly in the plugin.Changelog entry
@wordpress/componentsdependency.The text was updated successfully, but these errors were encountered: