diff --git a/webpack.config.js b/webpack.config.js
index c61d5e53fbc324..51889b06d1eb44 100644
--- a/webpack.config.js
+++ b/webpack.config.js
@@ -9,8 +9,8 @@ const vendorsConfig = require( './tools/webpack/vendors' );
 
 module.exports = [
 	...blocksConfig,
+	scriptModules,
 	packagesConfig,
-	scriptModules, // Script modules build depends on the package build.
 	...developmentConfigs,
 	...vendorsConfig,
 ];