Fix dependencies of scripts & styles

This commit is contained in:
Kelly Dwan 2018-05-08 10:40:39 -04:00
parent db74d56587
commit 19733a3049
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ function woo_dash_register_script() {
wp_register_script(
WOO_DASH_APP,
woo_dash_url( 'dist/index.js' ),
[ 'wp-blocks', 'wp-element', 'wp-i18n' ],
[ 'wp-components', 'wp-blocks', 'wp-element', 'wp-i18n' ],
filemtime( woo_dash_dir_path( 'dist/index.js' ) ),
true
);
@ -15,7 +15,7 @@ function woo_dash_register_script() {
wp_register_style(
WOO_DASH_APP,
woo_dash_url( 'dist/css/style.css' ),
[ 'wp-components', 'wp-blocks', 'wp-edit-blocks' ],
[ 'wp-edit-blocks' ],
filemtime( woo_dash_dir_path( 'dist/css/style.css' ) )
);