Index: src/wp-includes/blocks.php
===================================================================
--- src/wp-includes/blocks.php	(revision 52691)
+++ src/wp-includes/blocks.php	(working copy)
@@ -20,10 +20,14 @@
 	if ( 0 !== strpos( $asset_handle_or_path, $path_prefix ) ) {
 		return $asset_handle_or_path;
 	}
-	return substr(
+	$path = substr(
 		$asset_handle_or_path,
 		strlen( $path_prefix )
 	);
+	if ( strpos( $path, './' ) === 0 ) {
+		$path = substr( $path, 2 );
+	}
+	return $path;
 }
 
 /**
Index: tests/phpunit/tests/blocks/register.php
===================================================================
--- tests/phpunit/tests/blocks/register.php	(revision 52691)
+++ tests/phpunit/tests/blocks/register.php	(working copy)
@@ -122,9 +122,18 @@
 	 * @ticket 50263
 	 */
 	public function test_removes_block_asset_path_prefix() {
+		$result = remove_block_asset_path_prefix( 'file:block.js' );
+
+		$this->assertSame( 'block.js', $result );
+	}
+
+	/**
+	 * @ticket 54797
+	 */
+	public function test_removes_block_asset_path_prefix_and_current_directory() {
 		$result = remove_block_asset_path_prefix( 'file:./block.js' );
 
-		$this->assertSame( './block.js', $result );
+		$this->assertSame( 'block.js', $result );
 	}
 
 	/**
