-
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
Create Block: remove deprecated viewModule field #59198
Conversation
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. |
Size Change: 0 B Total Size: 1.7 MB ℹ️ View Unchanged
|
Flaky tests detected in 7749bf3. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/7971620452
|
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.
Nice, thank you so much for a follow-up.
Follow up #59140
What?
This PR removes the deprecated and no longer used
viewModule
field from the create-block package.Why?
viewScriptModule
is currently used and theviewModule
field should be safe to remove (See this comment).Testing Instructions
Run the following to ensure that the generated block.json still has the expected fields.
path/to/gutenberg/packages/create-block/index.js test-block-1
path/to/gutenberg/packages/create-block/index.js test-block-2 --template path/to/gutenberg/packages/create-block-tutorial-template
path/to/gutenberg/packages/create-block/index.js test-block-3 --template path/to/gutenberg/packages/create-block-interactive-template