This PR adds wp-block-editor to the base dependencies for editor-js.
The dependencies we load cover most of the commonly used WordPress packages required for block development in the editor context. However, whether you need to include additional dependencies depends on the specific functionality and imports used within your editor.js file.
The imports in individual block files are also needed and serve a separate purpose:
wp_enqueue_script() handles the loading of scripts and dependencies in the WordPress environment.
ES6+ imports are for coding and bundling your scripts using modern JavaScript practices.
This PR adds
wp-block-editor
to the base dependencies foreditor-js
.The dependencies we load cover most of the commonly used WordPress packages required for block development in the editor context. However, whether you need to include additional dependencies depends on the specific functionality and imports used within your editor.js file.
The imports in individual block files are also needed and serve a separate purpose:
wp_enqueue_script()
handles the loading of scripts and dependencies in the WordPress environment.