-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Build: Stop generating unused legacy scripts for core blocks #65268
Conversation
Size Change: +40 B (0%) Total Size: 1.83 MB
ℹ️ View Unchanged
|
Intriguing, it looks like the Form block uses a regular script ... I need to revisit this PR then. Plus, it apparently depends on #65232 as the zip file generation files because files are missing for core blocks in the |
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
I think this is blocking #65926. One idea for packages like this is to use an There was also work in #65064 that added a script modules exports field, another option would be to exclude files that appear there. |
0d065c7
to
d988d70
Compare
In d988d70 I refactored the view file for Form block to work as a script module. |
This is ready for review and testing. I included the testing instructions for the Form block, which is a bit more work to verify. |
Flaky tests detected in d988d70. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/12116288266
|
What?
Follow-up for #65064.
From #65064 (comment):
Why?
How?
Basically remove all related entry points and corresponding logic and config options.
These changes apply to the following blocks:
There will be present moving forward in
build-module/block-library
only.Screenshots or screencast
After:
Testing instructions for Form block
Fill in the form data:
Send the form and check the success message: