diff --git a/src/babel/transformation/file.js b/src/babel/transformation/file.js
index <HASH>..<HASH> 100644
--- a/src/babel/transformation/file.js
+++ b/src/babel/transformation/file.js
@@ -534,7 +534,7 @@ export default class File {
       result.code += "\n" + convertSourceMap.fromObject(result.map).toComment();
     }
 
-    if (opts.sourceMap === "both") {
+    if (opts.sourceMap === "inline") {
       result.map = null;
     }
both -> inline - thanks @dkieks