Skip to content

Commit

Permalink
Register all external js libraries as explicit dependencies to admin …
Browse files Browse the repository at this point in the history
…script
  • Loading branch information
vmasto committed Nov 8, 2023
1 parent 419953e commit 466753c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions gutenbee.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ function gutenbee_enqueue_editor_assets() {
'wp-keycodes',
'wp-html-entities',
'wp-server-side-render',
'lodash',
'react',
'react-dom',
'jquery',
), GUTENBEE_PLUGIN_VERSION, true );

wp_localize_script( 'gutenbee', '__GUTENBEE_SETTINGS__', array_merge( gutenbee_get_settings(), array(
Expand Down

0 comments on commit 466753c

Please sign in to comment.