Index: src/wp-includes/script-loader.php
===================================================================
--- src/wp-includes/script-loader.php	(revision 47124)
+++ src/wp-includes/script-loader.php	(working copy)
@@ -288,16 +288,18 @@
 	);
 
 	foreach ( $packages as $package ) {
-		$handle = 'wp-' . $package;
-		$path   = "/wp-includes/js/dist/$package$suffix.js";
+		$handle       = 'wp-' . $package;
+		$js_path      = "/wp-includes/js/dist/$package$suffix.js";
+		$dependencies = array();
+		$version      = false;
 
-		if ( ! file_exists( ABSPATH . $path ) ) {
-			continue;
+		$asset_path =  ABSPATH . WPINC . "/assets/dist/$package$suffix.asset.php";
+		if ( file_exists( $asset_path ) ) {
+			$asset_file   = include $asset_path;
+			$dependencies = $asset_file['dependencies'];
+			$version      = $asset_file['version'];
 		}
 
-		$asset_file   = include ABSPATH . WPINC . "/assets/dist/$package$suffix.asset.php";
-		$dependencies = $asset_file['dependencies'];
-
 		// Add dependencies that cannot be detected and generated by build tools.
 		switch ( $handle ) {
 			case 'wp-block-library':
@@ -307,9 +309,8 @@
 				array_push( $dependencies, 'media-models', 'media-views', 'postbox', 'wp-dom-ready' );
 				break;
 		}
+		$scripts->add( $handle, $js_path, $dependencies, $version, 1 );
 
-		$scripts->add( $handle, $path, $dependencies, $asset_file['version'], 1 );
-
 		if ( in_array( $package, $package_translations, true ) ) {
 			$scripts->set_translations( $handle );
 		}
