diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -225,6 +225,12 @@ function prepare(options, context, ns, hxmlContent, jsTempFile) {
                 }
             }
 
+            if (name == '--macro') {
+                // quote macro value
+                args.push(`"${value}"`);
+                continue;
+            }
+
             args.push(value);
         }
     }
Macro with single quotes need to be quoted