Skip to content

Commit

Permalink
Spec-parser: Use umd as the distribution format
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Jul 18, 2018
1 parent ffc1961 commit b059cce
Show file tree
Hide file tree
Showing 4 changed files with 1,090 additions and 1,075 deletions.
9 changes: 8 additions & 1 deletion lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,13 @@ function gutenberg_register_scripts_and_styles() {
filemtime( gutenberg_dir_path() . 'build/dom/index.js' ),
true
);
wp_register_script(
'wp-spec-parser',
gutenberg_url( 'build/spec-parser/index.js' ),
array(),
filemtime( gutenberg_dir_path() . 'build/spec-parser/index.js' ),
true
);
wp_add_inline_script(
'wp-dom',
gutenberg_get_script_polyfill( array(
Expand Down Expand Up @@ -290,7 +297,7 @@ function gutenberg_register_scripts_and_styles() {
wp_register_script(
'wp-blocks',
gutenberg_url( 'build/blocks/index.js' ),
array( 'wp-blob', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-shortcode', 'wp-data', 'lodash' ),
array( 'wp-blob', 'wp-deprecated', 'wp-dom', 'wp-element', 'wp-hooks', 'wp-i18n', 'wp-shortcode', 'wp-spec-parser', 'wp-data', 'lodash' ),
filemtime( gutenberg_dir_path() . 'build/blocks/index.js' ),
true
);
Expand Down
Loading

0 comments on commit b059cce

Please sign in to comment.