diff --git a/rollup.config.js b/rollup.config.js
index <HASH>..<HASH> 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -36,11 +36,16 @@ const plugins = [
     main: true,
     browser: true,
   }),
-  replace({
-    'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
-  }),
 ];
 
+if (format === 'umd') {
+  plugins.push(
+    replace({
+      'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV),
+    })
+  );
+}
+
 if (production) {
   plugins.push(uglify());
 }
Updated builds so that the NODE_ENV only gets replaced in umd builds