-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blocks: Add handling for block.json viewModule (#57437)
Add viewModule support for registering blocks from block.json metadata. This follows a similar pattern to how WordPress Core manages block scripts. Different module IDs are attached to the `WP_Block_Type` instance. Those modules are enqueued when the block is rendered.
- Loading branch information
Showing
1 changed file
with
188 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters