mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Editor: Add viewScriptModule handling to block.json metadata
Syncing changes from the Gutenberg plugin: https://github.com/WordPress/gutenberg/pull/57437. Scripts and styles can be registered for blocks via `block.json` metadata. There is now a Modules API, but was no way to register or associate module assets with blocks via `block.json`. Fixes #60233. Props jonsurrell, gziolo, cbravobernal, luisherranz, youknowriad. git-svn-id: https://develop.svn.wordpress.org/trunk@57565 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -68,6 +68,7 @@
|
||||
"editorScript": "tests-notice-editor-script",
|
||||
"script": "tests-notice-script",
|
||||
"viewScript": [ "tests-notice-view-script", "tests-notice-view-script-2" ],
|
||||
"viewScriptModule": [ "tests-notice-view-script-module", "tests-notice-view-script-module-2" ],
|
||||
"editorStyle": "tests-notice-editor-style",
|
||||
"style": [ "tests-notice-style", "tests-notice-style-2" ],
|
||||
"viewStyle": [ "tests-notice-view-style" ],
|
||||
|
||||
Reference in New Issue
Block a user