diff --git a/packages/building-rollup/modern-and-legacy-config.js b/packages/building-rollup/modern-and-legacy-config.js
index <HASH>..<HASH> 100644
--- a/packages/building-rollup/modern-and-legacy-config.js
+++ b/packages/building-rollup/modern-and-legacy-config.js
@@ -120,6 +120,7 @@ function createConfig(_options, legacy) {
 
       production &&
         options.plugins.workbox &&
+        !legacy &&
         workbox({
           mode: 'generateSW',
           workboxConfig: {
fix(building-rollup): Generate the SW once with the createCompatibilityConfig (#<I>)

* Generate the SW once with the createCompatibilityConfig



* Update packages/building-rollup/modern-and-legacy-config.js