Update dependencies, add all packages in use (https://github.com/woocommerce/woocommerce-blocks/pull/159)
This commit is contained in:
parent
133e5374af
commit
eb21a5ec9f
|
@ -13,9 +13,12 @@ const externals = {
|
||||||
'@wordpress/blocks': { this: [ 'wp', 'blocks' ] },
|
'@wordpress/blocks': { this: [ 'wp', 'blocks' ] },
|
||||||
'@wordpress/components': { this: [ 'wp', 'components' ] },
|
'@wordpress/components': { this: [ 'wp', 'components' ] },
|
||||||
'@wordpress/compose': { this: [ 'wp', 'compose' ] },
|
'@wordpress/compose': { this: [ 'wp', 'compose' ] },
|
||||||
'@wordpress/editor': { this: [ 'wp', 'editor' ] },
|
'@wordpress/data': { this: [ 'wp', 'data' ] },
|
||||||
'@wordpress/element': { this: [ 'wp', 'element' ] },
|
'@wordpress/element': { this: [ 'wp', 'element' ] },
|
||||||
|
'@wordpress/editor': { this: [ 'wp', 'editor' ] },
|
||||||
'@wordpress/i18n': { this: [ 'wp', 'i18n' ] },
|
'@wordpress/i18n': { this: [ 'wp', 'i18n' ] },
|
||||||
|
'@wordpress/url': { this: [ 'wp', 'url' ] },
|
||||||
|
lodash: 'lodash',
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -58,7 +61,7 @@ const GutenbergBlocksConfig = {
|
||||||
'@import "_breakpoints"; ' +
|
'@import "_breakpoints"; ' +
|
||||||
'@import "_mixins"; ',
|
'@import "_mixins"; ',
|
||||||
},
|
},
|
||||||
}
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
@ -76,7 +76,18 @@ function wgpb_extra_gutenberg_scripts() {
|
||||||
wp_register_script(
|
wp_register_script(
|
||||||
'woocommerce-products-category-block',
|
'woocommerce-products-category-block',
|
||||||
plugins_url( 'build/product-category-block.js', __FILE__ ),
|
plugins_url( 'build/product-category-block.js', __FILE__ ),
|
||||||
array( 'wp-element', 'wp-blocks', 'wp-i18n' ),
|
array(
|
||||||
|
'wp-api-fetch',
|
||||||
|
'wp-blocks',
|
||||||
|
'wp-components',
|
||||||
|
'wp-compose',
|
||||||
|
'wp-data',
|
||||||
|
'wp-element',
|
||||||
|
'wp-editor',
|
||||||
|
'wp-i18n',
|
||||||
|
'wp-url',
|
||||||
|
'lodash',
|
||||||
|
),
|
||||||
defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? filemtime( plugin_dir_path( __FILE__ ) . '/build/product-category-block.js' ) : WGPB_VERSION,
|
defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? filemtime( plugin_dir_path( __FILE__ ) . '/build/product-category-block.js' ) : WGPB_VERSION,
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue