Excludes Magento_Tinymce3 scripts from the bundling, saves about 3.7 … #24477
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
…MB in the generated JS bundle size.
Description (*)
This was discovered by accident (we normally disable the Magento_Tinymce3 module so we didn't notice this before).
Anyways, the Magento_Tinymce3 module was introduced in Magento 2.3.0, so this is probably already going on since then.
Apparently it was forgotten to exclude the javascripts of that module from the JS Bundling.
The JS bundle files took a total of about 6.9 MB and consisted of 8 files.
With this added exclusion, the bundled files are reduced to 3.2 MB and only consist of 4 files.
Fixed Issues (if relevant)
None that I could find
Manual testing scenarios (*)
pub/static/frontend/Magento/blank/en_US/js/bundle/
andpub/static/frontend/Magento/luma/en_US/js/bundle/
Somebody should probably also test if when you switch from TinyMCE4 to TinyMCE3 everything still works as expected, this is found in the configuration under General > Content Management > WYSIWYG Options > WYSIWYG Editor (I didn't go this far to test this).
Questions or comments
Stuff like this should get caught automatically somehow, if in one release the bundle size suddenly increases significantly, this should raise some flags ...
Contribution checklist (*)