Skip to content

Commit

Permalink
Merge pull request #76 from jghazally/add-dependencies
Browse files Browse the repository at this point in the history
Add in all dependencies when enqueueing scripts
  • Loading branch information
coreymcollins authored Nov 30, 2018
2 parents 9c75a18 + f65b954 commit 41d2706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function enqueue_block_editor_assets() {
wp_enqueue_script(
'wds-blocks-editor-js',
plugins_url( 'dist/blocks.build.js', __DIR__ ),
[ 'wp-blocks', 'wp-i18n', 'wp-element' ], // Dependencies, defined above.
[ 'wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-editor' ], // Dependencies, defined above.
filemtime( plugin_dir_path( __DIR__ ) . 'dist/blocks.build.js' )
);

Expand Down

0 comments on commit 41d2706

Please sign in to comment.