-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FSE: Use older editor
package for better Gutenberg compatibility.
#34096
Conversation
This PR does not affect the size of JS and CSS bundles shipped to the user's browser. Generated by performance advisor bot at iscalypsofastyet.com. |
For context the Let's double check what get's included/or not in the dist files. Ideally we avoid sending down duplicate packages (or multiple versions) but depending on what happens we can adjust what we do for the deprecation strategy here. |
Okay so we're externalizing this using the wordpress-external-dependencies-plugin props @sirreal. We'll need to be careful then about keeping track of what versions we support (WP/Gutenberg), and when packages are fully dropped Line 290 in a6b9d5e
https://github.com/Automattic/wp-calypso/tree/master/packages/wordpress-external-dependencies-plugin
|
Added a related writeup paAmJe-tx-p2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kwight ! I think this is good to ship if we can verify that no-one else has added back block-editor in the meantime.
Actually, the dependency is currently duplicated: wp-calypso/apps/full-site-editing/package.json Lines 36 to 38 in 44c1687
Seems that @rodrigoi also included it on #33885 for the I'd suggest to update this PR too with a switch to the |
Note that I also included a small change fixing a typo in the site description block title (which I accidentally introduced in #33720). Totally unrelated to what this PR is fixing, but didn't want to create a separate PR for such a small change. |
I left some thoughts on paAmJe-tx-p2#comment-1205 that may be interesting for folks to read. |
There is no such thing as a PR that's too small 🙂(but yes, let's keep it in) |
272a2f1
to
1af2a0b
Compare
@gwwar @mmtr I've updated the post content block to use the deprecated package (and tested that the block still works). I think I've covered everything needed here to merge? I'm a little confused by the app's @sirreal I like your suggestion in that we don't have to worry about anything while writing code (just use the newest thing). But like you mentioned in that comment, it relies on the two packages having identical exports, correct? Maybe getting this in for now is smart until we can figure out if we need something more robust. |
Right, that was an assumption on my part that may or may not be accurate. I was under the impression that Please proceed with the immediate fix. My comment was intended to provide helpful information, I don't know whether it is actionable or how relevant it is for you right now. |
Ah can we gitignore the package-lock.json? We're using externals for |
💯 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @kwight! Let's stick with this approach until we make the required webpack plugin changes.
I verified that the block name was updated:
And that we only have the following in full-site-editing.deps.json
991807d
to
ef2e614
Compare
Oh, no need, it's already ignored higher up somewhere; I was just trying to make sense of what I thought I should be seeing. We're good to go then; had to rebase, will merge after tests clear again. |
Changes proposed in this Pull Request
Stick with the older
editor
package in case we need to accommodate older versions of Gutenberg. See #33720 (comment).Testing instructions