diff --git a/bin/sdk/gutenberg.js b/bin/sdk/gutenberg.js
index <HASH>..<HASH> 100644
--- a/bin/sdk/gutenberg.js
+++ b/bin/sdk/gutenberg.js
@@ -4,8 +4,9 @@
  * External dependencies
  */
 const fs = require( 'fs' );
-const path = require( 'path' );
 const GenerateJsonFile = require( 'generate-json-file-webpack-plugin' );
+const path = require( 'path' );
+const { compact } = require( 'lodash' );
 
 const DIRECTORY_DEPTH = '../../'; // Relative path of the extensions to preset directory
 
@@ -84,7 +85,7 @@ exports.config = ( { argv: { inputDir, outputDir }, getBaseConfig } ) => {
 
 	return {
 		...baseConfig,
-		plugins: [
+		plugins: compact( [
 			...baseConfig.plugins,
 			fs.existsSync( presetPath ) &&
 				new GenerateJsonFile( {
@@ -94,10 +95,10 @@ exports.config = ( { argv: { inputDir, outputDir }, getBaseConfig } ) => {
 						betaBlocks: presetBetaBlocks,
 					},
 				} ),
-		],
+		] ),
 		entry: {
 			editor: editorScript,
-			'editor-beta': editorBetaScript,
+			...( editorBetaScript && { 'editor-beta': editorBetaScript } ),
 			...viewScriptEntry,
 			...viewBlocksScripts,
 		},
SDK: Fix build failures without index json files (#<I>)

* Fix broken false plugins



* Entry scripts cannot be undefined



* Alphabetize requires