Skip to content

Commit

Permalink
Rename interactivity to script modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
jffng committed Sep 16, 2024
1 parent 93deeee commit 84112e3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 88 deletions.
1 change: 1 addition & 0 deletions packages/block-library/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
"{src,build,build-module}/*/init.js"
],
"wpScriptModuleExports": {
"./accordion-group/view": "./build-module/accordion-group/view.js",
"./file/view": "./build-module/file/view.js",
"./image/view": "./build-module/image/view.js",
"./navigation/view": "./build-module/navigation/view.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/block-library/src/accordion-group/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function render_block_core_accordion_group( $attributes, $content ) {

$suffix = wp_scripts_get_suffix();
if ( defined( 'IS_GUTENBERG_PLUGIN' ) && IS_GUTENBERG_PLUGIN ) {
$module_url = gutenberg_url( '/build/interactivity/accordionGroup.min.js' );
$module_url = gutenberg_url( '/build-module/block-library/accordion-group/view.min.js' );
}

wp_register_script_module(
Expand Down
87 changes: 0 additions & 87 deletions tools/webpack/interactivity.js

This file was deleted.

0 comments on commit 84112e3

Please sign in to comment.