Replies: 2 comments 5 replies
-
@jakeparis https://developer.wordpress.org/block-editor/reference-guides/block-api/block-metadata/#assets |
Beta Was this translation helpful? Give feedback.
5 replies
-
As of today, the script needs to be registered with {
"editorScript": [ "file:./index.js", "my-script-with-custom-dependencies" ]
} However, we would be happy to see implemented the proposed solution in #46954. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a block which requires a script from one of our mu-plugins. However, when I register the block using
register_block_type
and a block.json file, there's no way to declare a dependency.I'm looking to declare a dependency in the same way I would as the third parameter in
wp_enqueue_script()
Beta Was this translation helpful? Give feedback.
All reactions