Skip to content

Commit

Permalink
Remove usage of non-min .js files in Script Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
sirreal committed Sep 20, 2024
1 parent 44da0b0 commit e99b96e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -645,10 +645,6 @@ function gutenberg_default_script_modules() {
break;
}

if ( SCRIPT_DEBUG ) {
// Replave ".min.js" with ".js" in devlopment.
$file_name = substr( $file_name, 0, -7 ) . '.js';
}
$path = gutenberg_url( "build-module/{$file_name}" );
wp_register_script_module( $script_module_id, $path, $script_module_data['dependencies'], $script_module_data['version'] );
}
Expand Down

0 comments on commit e99b96e

Please sign in to comment.